Skip to content

CICD-095 · Check artifact bytes after download ​

Encyclopedia · Artifact handoffs · All snippets

Previous · CICD-094 · Next · CICD-096

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites actions runner, trusted producers and files actually generated by tests.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
cd received
sha256sum --strict --check SHA256SUMS

3. How it works ​

--check recomputes the digest of each listed path. This confirms bytes agree with the trusted manifest before the consuming command uses them.

4. Verify the result ​

Modify a copy of the artifact and verify checksum failure.

Validation syntax-validated (Bash parse). Status definitions.