Repository navigation
Verify preview migration source against GitHub and Git - #346
Merged
Merged
Conversation
aRustyDev
temporarily deployed
to
preview-control-plane
November 20, 2026 22:12 — with
GitHub Actions
Inactive
aRustyDev
marked this pull request as ready for review
November 20, 2026 22:16
aRustyDev
added a commit
that referenced
this pull request
Nov 22, 2026
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This branch was previously deployed
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.
Verify preview migration artifacts against a successful source workflow, the current same-repository PR, and an independent extraction of the exact Git commit. The verifier emits regenerated bytes only after the complete downloaded artifact matches; a checksum supplied with the artifact is not treated as provenance.
Add a read-only workflow that exercises the checks after source preparation or for a manually selected source run. It fetches GitHub metadata, selects exactly one valid artifact, rechecks the PR after verification, and holds no deployment credentials. A later privileged caller must still fetch fresh metadata, recheck the PR and binding, and address the race after the check; this workflow does not authorize a later deployment.
Generated tests cover forged SQL with recomputed digests, changed or closed PRs, forged workflow/artifact metadata, duplicate artifacts, symlinks and size limits. Controls disabling the Git comparison and successful-run check caused the tests to fail. The complete local reconciliation test and workflow lint passed. A read-only live check accepted PR #338's then-current artifact, and rejected the same artifact after its head changed.
The plan records a read-only audit of the two existing preview roles: no elevated attributes, memberships, accessible cross-schema table privileges or non-system security-definer functions; connection limit 8; and zero database timeout defaults. Enforce resource limits and assess the preview role's ability to change its own password before accepting untrusted migrations.