Cosign keyless verify command that pins the GitHub Actions workflow identity?
IntermediateProductionRapid-Fire Tool Questions
Answer
cosign verify registry.example.com/app@sha256:abc... \
--certificate-identity-regexp '^https://github.com/acme/app/.github/workflows/release.yml@refs/heads/main$' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Without identity and issuer flags, any valid Sigstore signature would pass.
More on Rapid-Fire Tool Questions
Gitleaks command to scan only staged changes before a commit?BeginnerTrivy command to fail a build only on fixable critical vulnerabilities?BeginnerGenerate a CycloneDX SBOM for an image with Syft and scan it with Grype?BeginnerRun Checkov against a Terraform plan instead of raw HCL?BeginnerSemgrep command to scan with OWASP rules and fail on findings?BeginnerHow do you list everything a service account can do in Kubernetes?Intermediate