Skip to content

CICD-495 · Release audit trail generation ​

Encyclopedia · Pipeline governance and operational management · All snippets

Previous · CICD-494 · Next · CICD-496

1. Where it fits ​

  • Placement CI evidence step.
  • Prerequisites trusted policy checkout and normalized deployment events with scoped access.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters CANDIDATE_DIGEST.

2. Copy the snippet ​

bash
jq -n --arg sha "$(git rev-parse HEAD)" --arg digest "${CANDIDATE_DIGEST:?}" --arg at "$(date -u +%FT%TZ)" '{commit:$sha,digest:$digest,deployed_at:$at,environment:"staging"}' > release-audit.json

3. How it works ​

The evidence binds the source commit, artifact digest, environment and UTC time. Use a stable deployment ID to connect it to approvals and observed outcome.

4. Verify the result ​

Join to approval and outcome evidence using an immutable deployment ID. Store centrally with restricted writes.

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