Skip to content

Commit f5fcafa

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
types: [opened, edited, synchronize, reopened]
66

7+
permissions:
8+
contents: read
9+
pull-requests: read
10+
711
jobs:
812
pr-title:
913
name: Validate PR Title

0 commit comments

Comments
 (0)