Skip to content

Commit 48f53f5

Browse files
committed
ci: declare workflow-level contents: read on check-index and test
Workflow runs checks only; no GitHub API writes from the workflow itself. Post-CVE-2025-30066 hardening pattern. yaml.safe_load validated. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent 6fbe3db commit 48f53f5

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/check-index.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- check-index-test
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
env:
99
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
name: ${{ matrix.ruby_version }}-${{ matrix.ubuntu_version }} ${{ matrix.arch }}

0 commit comments

Comments
 (0)