Skip to content

Commit 75633fe

Browse files
gzileniclaude
andcommitted
fix(ci): add explicit permissions block to CI workflow
Restricts GITHUB_TOKEN to contents:read (least privilege for a checkout+lint+test workflow), resolving CodeQL code-scanning alert #2 (actions/missing-workflow-permissions / CWE-275). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fae439d commit 75633fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.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+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
name: Lint & Test

0 commit comments

Comments
 (0)