D5: Pinning, Usage Policies & Artifact Attestations
GH-200 GitHub Actions exam practice questions · 11 flashcards
Question
Pin to full commit SHA?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 Pinning, Usage Policies & Artifact Attestations practice questions and answers
- Pin to full commit SHA?Prevents tag hijacking/supply chain attacks — most secure reference.
- Floating refs risk?@main or @v1 can change underneath you.
- SHA pinning enforcement?Org/enterprise policy requiring SHA-pinned actions.
- Allow/deny lists?Policies allowing specific actions; prefix ! to block.
- Artifact attestations?Signed provenance (SLSA) generated with actions/attest-build-provenance.
- Permissions for attestations?id-token: write, attestations: write (and contents: read).
- Verifying attestations?gh attestation verify <artifact> --owner org.
- SBOM attestations?actions/attest-sbom links SBOM to artifact.
- SLSA?Supply-chain Levels for Software Artifacts framework for build integrity.
- Integrating into deployment?Verify attestation before deploy (admission policy, gh verify step).
- Scenario: ensure container deployed was built by your CI. Mechanism?Generate artifact attestation in build, verify before deployment.