ci: support GitHub squash merge history - #2
Merged
Conversation
tsubotti63
marked this pull request as ready for review
July 25, 2026 02:19
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
GitHub <noreply@github.com>without widening the approved author policyrefs/remotes/origin/*while continuing to reject non-originremotes, non-
mainlocal branches, unsafe namespaces, and sensitive ref namesfrom public refs, while retaining the all-object privacy and credential scan
bootstrap-cijob on pull requests using the PR head SHAFailure being recovered
30139161784testpython scripts/validate_public_history.py --ciabe0281b2e8a713ad1b4bb44aa6adcca2b0f6445had approved author
tsubotti63and confirmed committerGitHub <noreply@github.com>, but the old policy required them to be equalrefs/remotes/origin/agent/public-docs-evidence-alignment, but the oldpolicy only allowed the three required refs and tags
Identity policy
Before:
After:
GitHub committer tuple
GitHub <noreply@github.com>Ref policy
Before:
main,origin/main,origin/HEAD, and tagsAfter:
refs/remotes/origin/*are allowedmainlocal branches, non-originremote refs, extra remotes, unexpectednamespaces, and ref names with private/internal markers still fail
HEAD,main,origin/main, andorigin/HEAD -> origin/mainalignment isunchanged
Security boundaries preserved
origin-only remote enforcementand private workflow-status scanning
git cat-file --batch-all-objectsRemote feature branches do not reduce object coverage. Commit identity, message,
and path checks now use
git rev-list --all, and blob/commit/tag privacy scanscontinue to inspect every local Git object, including unreachable objects.
Tests added
Eighteen focused tests cover:
Local / Work validation
git diff --check: PASSPR-trigger strategy
Option A is used. The existing
bootstrap-cijob now runs on pull requests tomain. Checkout uses the PR head SHA instead of GitHub's synthetic test mergecommit, then the existing ref-normalization step creates the same validator
contract used on a
mainpush. No broader PR Quality Gate redesign is included.Deferred items
validator step; changing action majors is intentionally outside this P0 fix.
text and is not mixed into this repository code change.
Known residual risks
change will fail closed until explicitly reviewed and allowlisted.
temporary synthetic merge commit. The branch is based on current
main; thefinal main-push run remains the authoritative post-merge check.
Rollback
Revert the single commit from this PR. That restores the prior validator and
push-only workflow without changing product data, output contracts, tags,
releases, or package publication.