Skip to content

Commit 8fb72b1

Browse files
committed
ci: declare workflow-level contents: read on ci and lint
Workflow runs checks only; no GitHub API writes. Post-CVE-2025-30066 hardening pattern. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent c2b831f commit 8fb72b1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [pull_request, push, workflow_dispatch]
55
env:
66
FORCE_COLOR: 1
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
test:
1013
name: Check build, markup, and links

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Lint
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
lint:
710
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)