Skip to content

Commit e4512b1

Browse files
committed
ci: restrict GITHUB_TOKEN to least-privilege (contents: read)
Resolves three CodeQL actions/missing-workflow-permissions alerts. No CI job needs write access.
1 parent aaa7efd commit e4512b1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
# Least-privilege: CI only reads the repo; no job pushes commits, releases, or comments.
12+
permissions:
13+
contents: read
14+
1115
jobs:
1216
lint:
1317
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)