Skip to content

Gate preview deploys on evidence bound to the exact commit #693

Description

@TarikGul

A preview build is only trustworthy if it was produced from the commit under review and
validated by the run that tested that commit. Without that link, a deploy can ship
something CI never checked.

The deploy path should run after CI rather than alongside it, download the triggering run's
evidence, and fail closed unless the evidence matches the exact commit being deployed.
No evidence means no deploy.

Pairs with the per-commit build stamping in #676 and #681: the stamp proves what a reviewer
installed, and this proves CI validated it.

Steps

  • Deploy runs after CI completes, keyed to that run
  • Download the triggering run's evidence
  • Fail closed when the evidence does not match the commit
  • Report each host's publication outcome independently

Done when

A deploy cannot happen for a commit CI did not validate, and the failure is loud.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    github_actionsPull requests that update GitHub Actions codehost-workNeeds implementation in one or more host repos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions