Skip to content

CICD-094 · Hash output before crossing jobs ​

Encyclopedia · Artifact handoffs · All snippets

Previous · CICD-093 · Next · CICD-095

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 dist
sha256sum app.tar.gz > SHA256SUMS

3. How it works ​

The checksum describes a file path relative to the directory where it was generated. Verify the downloaded bytes in that corresponding directory.

4. Verify the result ​

Upload files and checksum in the same artifact. Verify through the same immutable run.

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