Skip to content

Commit f538094

Browse files
Add explicit permissions blocks to CI workflows
Limit GITHUB_TOKEN permissions to contents:read by default, as recommended by GitHub's security scanner. The create-release job overrides this with contents:write as needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b919143 commit f538094

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
1010
cancel-in-progress: true
1111

12+
# Limit permissions of the GITHUB_TOKEN
13+
permissions:
14+
contents: read
15+
1216
jobs:
1317
build-and-test:
1418
name: test (${{ matrix.os }})

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ concurrency:
1414
group: ${{ github.workflow }}-${{ github.ref }}
1515
cancel-in-progress: true
1616

17+
# Limit permissions of the GITHUB_TOKEN (override at job level as needed)
18+
permissions:
19+
contents: read
20+
1721
jobs:
1822
build-and-bundle:
1923
name: Build and Bundle Platform

0 commit comments

Comments
 (0)