Skip to content

CICD-380 · Automated compliance evidence collection ​

Encyclopedia · Advanced security and compliance · All snippets

Previous · CICD-379 · Next · CICD-381

1. Where it fits ​

  • Placement CI evidence job.
  • Prerequisites reviewed policies, a short-lived CI identity, and synthetic or approved test inputs.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters GITHUB_RUN_ID.

2. Copy the snippet ​

bash
mkdir -p evidence
sha256sum dist/release.tar.gz > evidence/artifact.sha256
jq -n --arg sha "$(git rev-parse HEAD)" --arg run "${GITHUB_RUN_ID:-local}" '{commit:$sha,run:$run}' > evidence/release.json

3. How it works ​

The command records the content hash of the given output. Transfer the manifest with integrity and verify it at the consumer. The command archives or inspects the selected files. Verify the relative paths and file set before using the archive downstream.

4. Verify the result ​

Add signed attestations and policy reports produced by CI. Apply access control and retention to the uploaded evidence.

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