Skip to content

Commit da48830

Browse files
CI: add least-privilege permissions to GitHub Actions workflows
Add explicit workflow-level permissions blocks to resolve CodeQL actions/missing-workflow-permissions alerts. Scopes are derived from workflow operations (git push, artifact upload, Danger, release lanes). Refs: APPSEC-164
1 parent bbaa0db commit da48830

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ concurrency:
66
group: ${{ github.workflow }}-${{ github.head_ref }}
77
cancel-in-progress: true
88

9+
permissions:
10+
actions: write
11+
contents: read
12+
pull-requests: read
13+
914
jobs:
1015
build:
1116
name: 🧪 Test & lint

0 commit comments

Comments
 (0)