Skip to content

Commit b0c29bc

Browse files
Potential fix for code scanning alert no. 11: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 809ad57 commit b0c29bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
# Only run this job when *not* publishing a tag
1414
if: startsWith(github.ref, 'refs/tags/') != true
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1618

1719
steps:
1820
- name: Checkout source code
@@ -31,6 +33,9 @@ jobs:
3133
security:
3234
if: startsWith(github.ref, 'refs/tags/') != true
3335
runs-on: ubuntu-latest
36+
permissions:
37+
contents: read
38+
security-events: write
3439
steps:
3540
- uses: actions/checkout@v4
3641
- name: Run Snyk to check for vulnerabilities

0 commit comments

Comments
 (0)