Skip to content

Commit a147e52

Browse files
arpitjain099marco-ippolito
authored andcommitted
ci: declare workflow-level contents: read on ci and build-swc
Workflow runs checks only; no GitHub API writes. Post-CVE-2025-30066 hardening pattern. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent 5d24781 commit a147e52

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-swc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- 'tools/*'
77
- 'deps/*'
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build-swc:
1114
runs-on: ubuntu-latest

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: CI
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
commit-lint:
811
name: Commit Lint

0 commit comments

Comments
 (0)