Skip to content

Commit 53cbc4c

Browse files
starbopsclaude
andcommitted
fix(ci): add contents write permissions for docs and performance jobs
- Add contents: write to docs job for GitHub Pages deployment to gh-pages branch - Add contents: write to performance job for benchmark data storage to gh-pages branch - Fixes permission denied errors when pushing to repository - Maintains security with minimal required permissions for each job function Fixes run #16209410222 failures. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent ceef76a commit 53cbc4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ jobs:
183183
runs-on: ubuntu-latest
184184
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
185185
permissions:
186-
contents: read
186+
contents: write # Required for pushing to gh-pages branch
187187
pages: write # Required for GitHub Pages deployment
188188
id-token: write # Required for GitHub Pages deployment
189189

@@ -230,7 +230,7 @@ jobs:
230230
runs-on: ubuntu-latest
231231
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
232232
permissions:
233-
contents: read
233+
contents: write # Required for pushing benchmark data to gh-pages
234234
actions: write # Required for benchmark action auto-push
235235
pull-requests: write # Required for benchmark action comments
236236

0 commit comments

Comments
 (0)