Skip to content

Security & secrets: Build, deploy & roll back

Security & secrets commands for build, deploy & roll back (tags: #deploy #build #rollback #release #compose).

Index
1 items

Trivy: Fail CI on critical vulnerabilities

Safe

Non-zero exit when a fixable critical CVE is found: use as a pipeline gate.

trivy image --exit-code 1 --severity CRITICAL --ignore-unfixed <image>:<tag>
What each part does
  1. trivy imagescan a container image
  2. --exit-code 1exit with 1 if anything is found, so the CI job fails
  3. --severity CRITICALonly count critical findings
  4. --ignore-unfixedskip vulnerabilities with no fixed version yet
  5. <image>:<tag>the image to scan

Also known as: security gate · pipeline scan

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…