Skip to content

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

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

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

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

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)

Copilot AI assigned Copilot and mrjf Apr 4, 2026
Copilot AI 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>
Copilot AI changed the title [WIP] Fix sync-branches permissions issue Fix sync-branches permissions: read-all → contents: write Apr 4, 2026
Copilot AI requested a review from mrjf April 4, 2026 04:40
Copilot finished work on behalf of mrjf April 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 main Apr 4, 2026
14 of 15 checks passed
@mrjf mrjf deleted the copilot/update-workflow-permissions branch April 4, 2026 04:55
Sign up for free to 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