Skip to content

Commit c2f9954

Browse files
Potential fix for code scanning alert no. 1: Workflow does not contain permissions (#74)
* Potential fix for code scanning alert no. 1: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix(github): add permission block in workflows --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 25aa3c6 commit c2f9954

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/pre-commit_ci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Pre Commit CI
22

33
on: pull_request
44

5+
permissions:
6+
contents: read
7+
8+
59
jobs:
610
build:
711
runs-on: ubuntu-latest

.github/workflows/pre-release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [prereleased]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
pre-release-build:
912
runs-on: ubuntu-latest

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [released]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
release-build:
912
runs-on: ubuntu-latest

.github/workflows/tests.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test code
22

33
on: pull_request
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)