From 57164be78b65cf0e42272bdc841643be8f635222 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Apr 2026 04:36:08 +0000 Subject: [PATCH 1/2] Initial plan From 31a23dcc3f3915ebfe303aefb7b60b56853c67e8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Apr 2026 04:39:16 +0000 Subject: [PATCH 2/2] 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> --- .github/workflows/sync-branches.lock.yml | 3 ++- workflows/sync-branches.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-branches.lock.yml b/.github/workflows/sync-branches.lock.yml index 7da366b..0a0522d 100644 --- a/.github/workflows/sync-branches.lock.yml +++ b/.github/workflows/sync-branches.lock.yml @@ -249,7 +249,8 @@ jobs: agent: needs: activation runs-on: ubuntu-latest - permissions: read-all + permissions: + contents: write env: GH_AW_WORKFLOW_ID_SANITIZED: syncbranches outputs: diff --git a/workflows/sync-branches.md b/workflows/sync-branches.md index 5111d05..bc01071 100644 --- a/workflows/sync-branches.md +++ b/workflows/sync-branches.md @@ -9,7 +9,8 @@ on: branches: [main] # ← update this if your default branch is not 'main' workflow_dispatch: -permissions: read-all +permissions: + contents: write timeout-minutes: 10