Skip to content

Commit 3674581

Browse files
committed
fix(ci): add explicit permissions blocks to workflow wrappers
Fixes CodeQL alert: workflow does not limit GITHUB_TOKEN permissions. Signed-off-by: Jimisola Laursen <jimisola@jimisola.com>
1 parent 49036fe commit 3674581

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
paths:
1111
- "docs/**"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
build:
1518
uses: reqstool/.github/.github/workflows/common-build-docs.yml@main

.github/workflows/check-semantic-pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request_target:
66
types: [opened, edited, synchronize, reopened]
77

8+
permissions:
9+
pull-requests: read
10+
811
jobs:
912
check:
1013
uses: reqstool/.github/.github/workflows/common-check-semantic-pr.yml@e1d67194373e4da7ccfdf400f46201f18ca14f23 # main 2026-03-07

0 commit comments

Comments
 (0)