fix: use CREATE_PR_PAT for workflow auth and update formula to v0.7.5#6
Merged
Merged
Conversation
- Formula: update to v0.7.5 with correct SHA256 checksums - Workflow: replace github.token with secrets.CREATE_PR_PAT for PR creation The default GITHUB_TOKEN cannot push branches or create PRs in Microsoft org repos due to org-level policy restrictions. This is the same fix applied to the apm repo itself (microsoft/apm#144).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Formula update (v0.7.5)
Formula/apm.rbto v0.7.5 with correct SHA256 checksums from the v0.7.5 releaseWorkflow fix (root cause)
${{ github.token }}with${{ secrets.CREATE_PR_PAT }}in theupdate-formula.ymlworkflowRoot Cause
The automated formula update workflow fails to create PRs because it uses the default
GITHUB_TOKEN(github.token). In Microsoft org repos, the default token is restricted by org-level policies and cannot push branches or create PRs.This is the same issue fixed in the apm repo itself (microsoft/apm#144: "fix: use CREATE_PR_PAT for agentic workflows in Microsoft org").
Action Required
A
CREATE_PR_PATsecret must be configured in this repo's Settings → Secrets → Actions with a PAT that hascontents:writeandpull_requests:writescopes onmicrosoft/homebrew-apm.