Skip to content

Commit 4761ddd

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 a9cbff8 commit 4761ddd

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
@@ -3,6 +3,9 @@ on:
33
pull_request:
44
types: [opened, edited, synchronize, reopened]
55

6+
permissions:
7+
pull-requests: read
8+
69
jobs:
710
check:
811
uses: reqstool/.github/.github/workflows/common-check-semantic-pr.yml@main

0 commit comments

Comments
 (0)