Component
Scripts
Bug Description
The release-please workflow in main.yml fails with:
GitHub Actions is not permitted to create or approve pull requests
This is caused by an org-level enterprise policy that blocks GITHUB_TOKEN from creating pull requests. The setting "Allow GitHub Actions to create and approve pull requests" is greyed out at the repository level, indicating it's controlled at the enterprise/org level.
Expected Behavior
The release-please workflow should successfully create release PRs when changes are pushed to the main branch.
Steps to Reproduce
- Push a conventional commit to
main branch
- Observe the
release-please job in the CI workflow
- Job fails with "GitHub Actions is not permitted to create or approve pull requests"
Additional Context
Root Cause: Org-level policy blocks GITHUB_TOKEN from creating PRs.
Solution: Use a GitHub App token instead of GITHUB_TOKEN.
GitHub App Created: hve-core-release-please (ID: 2646666)
- Already installed on microsoft org
- Uses
actions/create-github-app-token@v2
Fix PR: #167 - Implements GitHub App token for release-please
Remaining Setup After PR Merges:
- Add
RELEASE_APP_ID variable (value: 2646666)
- Add
RELEASE_APP_PRIVATE_KEY secret (PEM file contents)
Component
Scripts
Bug Description
The release-please workflow in
main.ymlfails with:This is caused by an org-level enterprise policy that blocks
GITHUB_TOKENfrom creating pull requests. The setting "Allow GitHub Actions to create and approve pull requests" is greyed out at the repository level, indicating it's controlled at the enterprise/org level.Expected Behavior
The release-please workflow should successfully create release PRs when changes are pushed to the
mainbranch.Steps to Reproduce
mainbranchrelease-pleasejob in the CI workflowAdditional Context
Root Cause: Org-level policy blocks
GITHUB_TOKENfrom creating PRs.Solution: Use a GitHub App token instead of
GITHUB_TOKEN.GitHub App Created:
hve-core-release-please(ID: 2646666)actions/create-github-app-token@v2Fix PR: #167 - Implements GitHub App token for release-please
Remaining Setup After PR Merges:
RELEASE_APP_IDvariable (value:2646666)RELEASE_APP_PRIVATE_KEYsecret (PEM file contents)