Skip to content

🐛 fix(ci): grant write permission to mirror workflow#330

Merged
gaborbernat merged 1 commit intomainfrom
fix/mirror-workflow-permissions
Mar 11, 2026
Merged

🐛 fix(ci): grant write permission to mirror workflow#330
gaborbernat merged 1 commit intomainfrom
fix/mirror-workflow-permissions

Conversation

@gaborbernat
Copy link
Member

The Mirror workflow has been failing on every scheduled and push-triggered run since at least March 9th with a 403 permission error when trying to push commits and tags back to the repository. The default GITHUB_TOKEN only had contents: read, which is insufficient for the push and release creation steps.

Adding an explicit permissions: contents: write block at the workflow level gives the token the access it needs. Pull request runs were unaffected since the push step is gated behind a github.ref == 'refs/heads/main' condition.

@gaborbernat gaborbernat added the bug Something isn't working label Mar 11, 2026
Add contents: write permission to the workflow so the
GITHUB_TOKEN can push commits, tags, and create releases.
@gaborbernat gaborbernat force-pushed the fix/mirror-workflow-permissions branch from 3290223 to 6f1a156 Compare March 11, 2026 16:06
@gaborbernat gaborbernat merged commit d452d7a into main Mar 11, 2026
5 checks passed
@gaborbernat gaborbernat deleted the fix/mirror-workflow-permissions branch March 11, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant