Skip to content

Fix: Add workflows permission to GitHub Actions#15

Merged
adityamaru merged 1 commit intomasterfrom
fix-workflows-permission
Nov 19, 2025
Merged

Fix: Add workflows permission to GitHub Actions#15
adityamaru merged 1 commit intomasterfrom
fix-workflows-permission

Conversation

@adityamaru
Copy link

@adityamaru adityamaru commented Nov 19, 2025

Problem

The release workflow failed with the error:

refusing to allow a GitHub App to create or update workflow 
`.github/workflows/buildkit.yml` without `workflows` permission

This happens when cherry-picking patches that modify workflow files.

Solution

Add workflows: write permission to both:

  • release-patched-version.yml: Needed when cherry-picking patches that include workflow changes
  • rebase-upstream.yml: Also needs this permission when rebasing includes workflow modifications

Testing

After this fix, the release workflow should be able to:

  1. Cherry-pick patches that modify workflow files
  2. Push branches containing workflow changes
  3. Complete the release process successfully

Note

Grants workflows: write permission in release and rebase GitHub Actions to allow updates when workflow files change.

  • CI/CD Permissions:
    • Add workflows: write to:
      • .github/workflows/release-patched-version.yml
      • .github/workflows/rebase-upstream.yml

Written by Cursor Bugbot for commit ee7b171. This will update automatically on new commits. Configure here.

The workflows need 'workflows: write' permission to push changes that modify
workflow files. This is required when cherry-picking patches that include
workflow updates.

Fixes error: 'refusing to allow a GitHub App to create or update workflow
without workflows permission'
@adityamaru adityamaru merged commit c4fd462 into master Nov 19, 2025
59 of 118 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant