Repository navigation
Publish dispatched validation status - #3
Merged
Merged
Conversation
adambenhassen
marked this pull request as draft
October 3, 2026 21:39
adambenhassen
marked this pull request as ready for review
October 3, 2026 21:54
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.
The workflow resolves and pins the live target tip, requires the requested PR head SHA, and validates the merge tree. A separate publisher attaches the
PR validation / dispatched-mergecommit status to that exact head for default-branch manual dispatches.The candidate-running validation job keeps read-only permissions. The isolated publisher has only
contents: read,pull-requests: read, andstatuses: write; it has no checkout, artifacts, cache, or action steps. It independently verifies the live PR repository, open state, head, base branch, and current target tip before writing. It reports success only when content validation and head verification succeed, and failure when they fail while revision binding remains valid. Cancelled, skipped, stale, invalid, API-error, non-default-branch, and non-dispatch runs cannot publish success. Publication is serialized per PR, and the status links the trusted run attempt.Accepted residual risks: repository writers can forge statuses in their own workflows; the default branch can advance between the currency check and status write; and candidate code can change its own validator and fixtures. Rollback by reverting the publisher job. An erroneous immutable status can be superseded with
errorin the same context. This change does not alter branch protection.Verification:
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -v(20 passed)actionlint .github/workflows/pr-validation.ymlPYTHONDONTWRITEBYTECODE=1 python3 scripts/validate_brand_assets.pygit diff --checkCloses MAIN-1209