Skip to content

Commit ab46110

Browse files
say-paulclaude
andcommitted
ci: restrict workflow token permissions to read-all
Adds `permissions: read-all` at the workflow level for all four workflows so the default token is least-privilege. Jobs that need write access (deploy-pages) already carry their own permissions block. Fixes OpenSSF Scorecard Token-Permissions check (0/10). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e7e2c1a commit ab46110

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
schedule:
77
- cron: '19 20 * * 6'
88

9+
permissions: read-all
10+
911
jobs:
1012
analysis_devskim:
1113
name: DevSkim

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66

77
name: Continuous integration
88

9+
permissions: read-all
10+
911
jobs:
1012
check-spelling:
1113
name: Check spelling

.github/workflows/comment-ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
issue_comment:
66
types: [created]
77

8+
permissions: read-all
9+
810
jobs:
911
check-pull-request:
1012
runs-on: ubuntu-latest

.github/workflows/greenboot-ci.yaml

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

8+
permissions: read-all
9+
810
jobs:
911
check-pull-request:
1012
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)