Skip to content

Fix sync-branches permissions: read-all → contents: write - #18

Merged
mrjf merged 2 commits into
mainfrom
copilot/update-workflow-permissions
Apr 4, 2026
Merged

Fix sync-branches permissions: read-all → contents: write#18
mrjf merged 2 commits into
mainfrom
copilot/update-workflow-permissions

Conversation

CopilotAI commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

sync-branches does git push to update autoloop/* branches but only requested permissions: read-all, so pushes are rejected by the read-only GITHUB_TOKEN.

  • Changed permissions: read-all to permissions: contents: write in workflows/sync-branches.md and the compiled .github/workflows/sync-branches.lock.yml agent job
  • contents: write is the minimum scope needed for git push (implicitly includes read)

CopilotAI linked an issue Apr 4, 2026 that may be closed by this pull request
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>
CopilotAI changed the title [WIP] Fix sync-branches permissions issueFix sync-branches permissions: read-all → contents: writeApr 4, 2026
CopilotAI requested a review from mrjfApril 4, 2026 04:40
@mrjf
mrjf marked this pull request as ready for review April 4, 2026 04:52
@mrjf
mrjf merged commit 19d4288 into mainApr 4, 2026
14 of 15 checks passed
@mrjf
mrjf deleted the copilot/update-workflow-permissions branch April 4, 2026 04:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sync-branches permissions issue

2 participants

@mrjf