Learning center

What actually ran on the commit you intend to ship?

A green check says that some code passed some tests on some machine. Before you merge, tag or deploy, check four things against the exact commit or artifact you ship: the commit the run tested, the inputs it fetched, whether it ran or replayed the result, and whether the artifact you ship came from that run. Each section below names the question and the guide that settles it.

Write the receipt first#

Copy this table into the pull request, the release ticket or the deploy note, and fill it from records, not from memory:

FieldWhere it comes from
Commit you shipgit rev-parse TAG^{commit} or the deploy run's head_sha
Commit the run tested, and its baseThe run's head_sha and the tested commit's parents
Run, attempt and workflow revisionThe run API and the job's "Set up job" log
InputsLockfile, submodules, LFS objects, base image digest, action SHAs
Ran or replayedTest counts and cache markers in the log
ArtifactDigest or checksum, and the run that built it

When a field is empty, say so in the note. An empty field is a gap in the evidence, not a pass.

Did the run test this commit?#

Did it fetch the inputs you think it did?#

Did it run the tests, or replay an old result?#

Is the artifact you ship the one that was tested?#

For the pull request's merge commit itself, read which commit the tests ran on. For a green attempt after a red one, read the rerun passed.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading