Skip to content

Commit 31a23dc

Browse files
Copilotmrjf
andauthored
fix: change sync-branches permissions from read-all to contents: write
The sync-branches workflow performs git push to update autoloop/* branches, but permissions: read-all only grants read-only access. With read-only GITHUB_TOKEN permissions, pushes are rejected. Update to contents: write which is the minimum required scope for git push. Agent-Logs-Url: https://github.com/githubnext/autoloop/sessions/39a3c2d0-3885-4259-ad1e-9276a166556e Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
1 parent 57164be commit 31a23dc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/sync-branches.lock.yml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workflows/sync-branches.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ on:
99
branches: [main] # ← update this if your default branch is not 'main'
1010
workflow_dispatch:
1111

12-
permissions: read-all
12+
permissions:
13+
contents: write
1314

1415
timeout-minutes: 10
1516

0 commit comments

Comments
 (0)