-
Notifications
You must be signed in to change notification settings - Fork 6
How To Generate CI Evidence
Huzefaaa2 edited this page May 8, 2026
·
1 revision
Use evidence export when a pipeline needs an audit artifact for SOC2, ISO, PCI, or internal governance. v2.0.0 supports JSON, CSV, and PDF evidence exports.
terraform-guardrail evaluate ./infra --provider aws --baseline org-baseline --format jsonThe evaluation returns a result ID. Export evidence from that result:
terraform-guardrail evidence export <result-id> --format jsonCSV is also supported:
terraform-guardrail evidence export <result-id> --format csvPDF evidence is available for audit review packets:
terraform-guardrail evidence export <result-id> --format pdfUse the repository example:
examples/aws-codepipeline/buildspec.yml
The pipeline should keep both artifacts:
guardrail-report.jsonguardrail-evidence.json- Optional PDF evidence for audit packets
For drift prevention and evidence in one command, use:
terraform-guardrail enterprise drift-gate ./infra \
--provider aws \
--baseline org-baseline \
--snapshot-id prod \
--evidence-format json \
--format jsonEvidence records include the evaluation decision, resolved policy IDs, finding details, timestamps, and metadata such as owner, standard, control ID, and remediation when available.