Skip to content

Commit 9615071

Browse files
authored
ci: set read-only workflow token permissions (#1681)
## Summary - set explicit read-only `GITHUB_TOKEN` permissions for CI workflows that only need repository checkout/read access - leave release/deploy/write-capable workflows unchanged ## Why This follows GitHub Actions least-privilege guidance and reduces the default token scope available to routine CI jobs without changing the test/build commands. ## Verification - Parsed the changed workflow YAML with PyYAML. - Ran `git diff --check`. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated the software composition analysis (SCA) workflow to use explicit, read-only repository permissions. * Strengthens automation security for scanning while keeping existing end-user behavior unchanged. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Alb3e3 <Alb3e3@users.noreply.github.com>
1 parent 61a961f commit 9615071

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/sca_scan.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
10+
permissions:
11+
contents: read
912
jobs:
1013
snyk-cli:
1114
uses: auth0/devsecops-tooling/.github/workflows/sca-scan.yml@main

0 commit comments

Comments
 (0)