Skip to content

Commit 364e52b

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 c89366b commit 364e52b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ on:
1212

1313
env:
1414
BUILD_CACHE_KEY: ${{ github.sha }}-dist
15+
16+
permissions:
17+
actions: write
18+
contents: read
19+
pull-requests: read
20+
1521
jobs:
1622
lint:
1723
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)