Skip to content

Fix update-package-manifests workflow PR creation permission error#499

Merged
Mossaka merged 2 commits into
mainfrom
copilot/fix-homebrew-winget-pipeline
Nov 2, 2025
Merged

Fix update-package-manifests workflow PR creation permission error#499
Mossaka merged 2 commits into
mainfrom
copilot/fix-homebrew-winget-pipeline

Conversation

Copilot AI commented Nov 2, 2025

Copy link
Copy Markdown
Contributor

The update-package-manifests workflow failed to create PRs after releases with error: "GitHub Actions is not permitted to create or approve pull requests." This occurs because the default GITHUB_TOKEN lacks permission to create PRs.

Changes

  • Added token: ${{ secrets.RELEASE_TOKEN }} to the peter-evans/create-pull-request action in .github/workflows/update-package-manifests.yml
  • Aligns with existing pattern used in prepare-release.yml and release.yml workflows
- name: Create Pull Request
  uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
  with:
    token: ${{ secrets.RELEASE_TOKEN }}  # Added
    commit-message: "chore: update winget and homebrew for v${{ steps.version.outputs.version }}"
    # ...

This enables the workflow to successfully create PRs updating Homebrew and WinGet manifests after each release.

Original prompt

fix the upate homebrew and winget manifest pipeline for the following error message:



  /usr/bin/git push --force-with-lease origin release/v0.3.4-post:refs/heads/release/v0.3.4-post

  remote: 

  remote: Create a pull request for 'release/v0.3.4-post' on GitHub by visiting:        

  remote:      https://github.com/microsoft/wassette/pull/new/release/v0.3.4-post        

  remote: 

  To https://github.com/microsoft/wassette

   * [new branch]      release/v0.3.4-post -> release/v0.3.4-post

Create or update the pull request

  Attempting creation of pull request

  Error: GitHub Actions is not permitted to create or approve pull requests. - https://docs.github.com/rest/pulls/pulls#create-a-pull-request

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Homebrew and Winget manifest pipeline error Fix update-package-manifests workflow PR creation permission error Nov 2, 2025
Copilot AI requested a review from Mossaka November 2, 2025 18:23
@Mossaka Mossaka marked this pull request as ready for review November 2, 2025 18:36
@Mossaka Mossaka merged commit ef5459e into main Nov 2, 2025
6 checks passed
@Mossaka Mossaka deleted the copilot/fix-homebrew-winget-pipeline branch November 2, 2025 18:36
Mossaka added a commit to Mossaka/wassette that referenced this pull request Feb 2, 2026
…icrosoft#499)

* Initial plan

* Fix update-package-manifests workflow to use RELEASE_TOKEN

Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
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.

2 participants