Skip to content

Commit 55d7741

Browse files
Copilotnhorton
andcommitted
Add explicit permissions to workflows for security
Co-authored-by: nhorton <204146+nhorton@users.noreply.github.com>
1 parent ae2576c commit 55d7741

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/claude-code-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
2222
cancel-in-progress: true
2323

24+
# Minimal permissions for this workflow
25+
permissions:
26+
contents: read
27+
2428
jobs:
2529
# Job for PRs - always passes, actual validation happens in merge queue
2630
pr-check:

.github/workflows/validate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches: [main]
88
workflow_dispatch:
99

10+
# Minimal permissions for this workflow
11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
tests:
1216
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)