Skip to content

fix: use CREATE_PR_PAT for workflow auth and update formula to v0.7.5#6

Merged
danielmeppiel merged 1 commit into
mainfrom
fix/workflow-auth-and-v0.7.5
Mar 9, 2026
Merged

fix: use CREATE_PR_PAT for workflow auth and update formula to v0.7.5#6
danielmeppiel merged 1 commit into
mainfrom
fix/workflow-auth-and-v0.7.5

Conversation

@danielmeppiel
Copy link
Copy Markdown
Collaborator

Changes

Formula update (v0.7.5)

  • Update Formula/apm.rb to v0.7.5 with correct SHA256 checksums from the v0.7.5 release

Workflow fix (root cause)

  • Replace ${{ github.token }} with ${{ secrets.CREATE_PR_PAT }} in the update-formula.yml workflow

Root 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_PAT secret must be configured in this repo's Settings → Secrets → Actions with a PAT that has contents:write and pull_requests:write scopes on microsoft/homebrew-apm.

- 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).
@danielmeppiel danielmeppiel merged commit 89d8a6d into main Mar 9, 2026
1 check passed
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.

1 participant