Skip to content

Commit 2396ce3

Browse files
committed
ci(precommit): cap GITHUB_TOKEN to contents: read
Workflow runs checks only; no GitHub API writes. Post-CVE-2025-30066 hardening pattern. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent a4defea commit 2396ce3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/precommit.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- main
88
pull_request:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
test:
1215
name: Run pre-commit.ci

0 commit comments

Comments
 (0)