Table of Contents

Return to the Secure CI/CD Course

Decide whether the fictional workshop calculator is ready to release. Build a packet that another maintainer can check without asking you what you meant. Extract a fresh copy of the local lab and enter its folder. Every local evidence source is included. Finish your packet and decision before opening the reference packet. Plan two hours.

Required Packet

Create a Markdown or text file outside the site repository. Use these headings in order:

  1. Release identity: artifact name, version, expected source repository, protected ref, and workflow.
  2. Dependency review: use sample-dependency-change.json to name the direct update, transitive addition, advisory status, owner, and your decision.
  3. SBOM record: use sample-sbom.cdx.json to name the supplied inventory, one component, and its limits. Add a Syft scan only if you ran one.
  4. Pipeline authority: test and release job permissions, untrusted input boundary, and secrets access.
  5. Scorecard review: use the illustrative sample-scorecard.json check, score, reason, correction, and verification plan. Label a live run separately.
  6. Provenance policy: use release-policy.json and sample-provenance.json to compare digest, source, builder, ref, and workflow. Include a hosted signed attestation result or “not run.”
  7. Tampering test: commands, outputs, exit codes, changed line, and decision.
  8. Final decision: approve, hold, or reject with the evidence needed to change the decision.

Keep expected and observed results separate. If you lack GitHub access, complete the local lab and label hosted steps “not run.” Do not invent a successful attestation or Scorecard score.

Run the local evidence check from the extracted folder. Save both outputs and exit codes:

python3 inspect_packet.py
python3 inspect_packet.py sample-provenance-wrong-source.json

Expected result: Both runs print field comparisons and a signature status. Record the fields, decisions, and exit codes before interpreting them. On Windows, use py -3 and $LASTEXITCODE. If your files differ from the fixture, extract a fresh archive.

Run the Failure Path

First verify the good release, then the tampered release. Use the two commands in the lab lesson . Record each digest result and exit code. Decide what each result proves and whether other release gates are satisfied. The lab’s checksum alone cannot approve publisher identity.

Add a wrong-source case. Assume a cryptographically valid attestation names another repository. Record your decision and name the mismatched field. This checks policy, not cryptography.

Assess Your Packet

CriterionPass condition
InputsThe supplied dependency change and SBOM scope are specific
AuthorityTest job has read access, release writes are isolated
ProvenanceStatement and policy fields are compared, source mismatch is addressed, and signature status is labeled
Failure testGood and tampered bytes are tested, with exit codes and decisions recorded
EvidenceObserved, expected, and not-run results are labeled
DecisionA second reviewer can reproduce the conclusion

Pass all six criteria for the local fixture path before treating the packet as complete. Ask a peer to reproduce the local checks from a fresh copy. If a check differs, save the command, environment, output, and corrected decision. Keep optional Syft, Scorecard CLI, GitHub Actions, and signed attestation controls “not run” unless you exercised them.

After Your Decision

Compare your completed packet with the separate reference packet . Record each difference, the evidence behind the correction, and whether it changes your release decision. Review the GitHub attestation guide before claiming an authenticated release.

Return to the course outline and keep the packet as a template for your next release review.