Skip to content

Commit cbee3b5

Browse files
rhuanbarretoclaude
andcommitted
fix(ci): add explicit permissions to workflows missing them
Resolves code scanning alerts #1, #2, #3 (actions/missing-workflow-permissions) by adding `permissions: contents: read` to the three workflows that lacked a top-level permissions block, following the principle of least privilege. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6593e8e commit cbee3b5

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/code-pull-request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1114
cancel-in-progress: true

.github/workflows/update-lock.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ on:
66
paths:
77
- "package.json"
88
- ".github/workflows/update-lock.yaml"
9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1114
cancel-in-progress: true
15+
1216
jobs:
1317
update-lock:
1418
name: Update Package Lock

.github/workflows/windows-smoke-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1114
cancel-in-progress: true

0 commit comments

Comments
 (0)