Grant GitHub App workflows permission
Pull Request
Please add description for changes you are making
GitHub Actions workflows that push tags were failing with permission errors when using a GitHub App token. The error occurred when step-tag-release.yml attempted to push tags:
refusing to allow a GitHub App to create or update workflow `.github/workflows/branch-hotfix.yml` without `workflows` permission
Added explicit workflow permissions to three branch workflows:
-
branch-develop.yml- Pushes beta release tags -
branch-master.yml- Pushes production release tags -
branch-hotfix.yml- Commits version bumps
Each now includes:
permissions:
contents: write
workflows: write
If there is an issue related to this PR, please add the reference
Resolves the workflow failure described in the issue where the GitHub App lacks permission to modify workflows during tag operations.
Original prompt
This section details on the original issue you should resolve
<issue_title>Grant GitHub App Workflows Permission</issue_title> <issue_description>## Description The recent workflow run (see: Workflow Run) failed because the GitHub App used does not have the required
workflowspermission. The error reads: refusing to allow a GitHub App to create or update workflow.github/workflows/branch-hotfix.ymlwithoutworkflowspermission.Steps to Fix:
- Update permissions in your workflow (e.g.
.github/workflows/branch-develop.yml) by adding:permissions: contents: write workflows: write ```</issue_description> ## Comments on the Issue (you are @copilot in this section) <comments> </comments>
- Fixes baynezy/Html2Markdown#683
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.