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:
| Field | Where it comes from |
|---|---|
| Commit you ship | git rev-parse TAG^{commit} or the deploy run's head_sha |
| Commit the run tested, and its base | The run's head_sha and the tested commit's parents |
| Run, attempt and workflow revision | The run API and the job's "Set up job" log |
| Inputs | Lockfile, submodules, LFS objects, base image digest, action SHAs |
| Ran or replayed | Test counts and cache markers in the log |
| Artifact | Digest 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?#
- The base branch changed after the run
- A pull_request_target check tested the base, not the pull request
- A squash commit skipped CI because of a branch commit's message
- Your commit's run was cancelled and a later commit is green
- The nightly run tested only the default branch
- The commit on main and the one the merge queue tested
- A manual deploy took the branch tip
Did it fetch the inputs you think it did?#
- Submodules were not fetched
- Git LFS files arrived as pointers
- A shallow clone fetched no tags
- npm install rewrote the lockfile
- Generated code was not regenerated
- An action's tag moved
- The runner image changed
- The base image tag moved
Did it run the tests, or replay an old result?#
- go test printed (cached)
- Turborepo replayed a build
- A cache restore key brought back old output
- Docker reused a stale layer
- Fewer tests were collected
Is the artifact you ship the one that was tested?#
- The artifact came from another run
- Rebuild or promote the tested artifact
- Two builds of one commit differ
- An image label names a pull request merge commit
- A tag was pushed again: find the running digest
- Read a Go binary's commit and dirty flag
- An annotated tag's ID is not the commit's
- A GitHub release tagged a branch tip
- Read what a build provenance attestation proves
- Find the commit that published an npm package
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.