Skip to content

CICD-098 · Compare source and artifact metadata ​

Encyclopedia · Artifact handoffs · All snippets

Previous · CICD-097 · Next · CICD-099

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.
  • Parameters GITHUB_SHA.

2. Copy the snippet ​

bash
jq -e --arg expected "${GITHUB_SHA:?}" '.source_commit == $expected' received/release.json

3. How it works ​

Compare the intended source identity against the packaged metadata. Use a separately approved SHA when promoting from a different workflow run.

4. Verify the result ​

Supply the approved source commit instead if this is a separate promotion run.

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