Publish merged releases from default branch pushes. - #28
Merged
Merged
Conversation
Signed-off-by: Samuel Williams <samuel.williams@shopify.com>
Signed-off-by: Samuel Williams <samuel.williams@shopify.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.
GitHub's upcoming default policy would block publishing through
pull_request_target. Triggerrelease-publish.yamlon pushes to the configured default branch, pin inspection to the pushed SHA, and require exactly one merged PR whose repository, base branch, and merge commit match before publishing.Only validated releases enter the publishing job's concurrency group, with
queue: maxto retain pending releases while later changes land. Environment approval, signing, attestations, and artifact recovery remain in place. The workflow no longer needsallow-unsafe-pr-checkoutor apull_request_targetpolicy exception.Updates the generated workflow, release notes, guides, and distributed agent context. Existing PR-number resolve calls remain compatible during migration. Consumers adopt the trigger with
gem:github:setup:update; their RubyGems Trusted Publisher configuration stays the same. Each release must be the tip of its own push, as with a normal GitHub PR merge.Validation:
git diff --checkpasses.GitHub references: push events, commit-to-PR lookup, queued concurrency.