feat(BUY-65234): deploy guards patch for ops merge - #298
Open
BuyWhere wants to merge 1 commit into
Open
Conversation
The agent's PAT lacks 'workflow' scope and cannot push .github/workflows/* changes directly. This patch contains the main-only deploy guards for all five remaining production dispatch workflows. Apply with: git am BUY-65234-workflow-guards.patch or review the diff in this file and merge via a workflow-scoped token. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Summary
Adds
if: github.ref != 'refs/heads/main'guards to all remaining production dispatch workflows. On 2026-07-29, agents dispatchedDeploy-site-to-productionfrom 3 feature branches that were 53 commits behind main, shipping stale builds that 410'd all 10 BUY-64967 blog posts. Ops merged the first guard todeploy-site-production.ymldirectly; this PR covers the rest.This PR contains one file:
BUY-65234-workflow-guards.patchwith the exact guard diff. A maintainer with a workflow-scope token must apply this patch, because the agent's PAT lacksworkflowscope (GitHub blocks.github/workflows/*changes).Files to Guard (in the patch)
.github/workflows/deploy-api-production.yml.github/workflows/deploy-railway.yml.github/workflows/deploy-nginx-production.yml.github/workflows/deploy-www.yml.github/workflows/deploy-mcp-railway.ymlEach gets:
Already merged to main
AGENTS.md— fleet-wide deploy policydeploy-site-production.yml— Ops guard (commit a96f4d1)Fixes: BUY-65234