Skip to content

Trivy

Image, filesystem and IaC scanning.

Category Security scanning
Authentication None (runs in the job)
Provider id trivy
  • SARIF/JSON report ingest
  • Severity policy gates
  1. Add the scanner step to your pipeline (a uses: step or a container image).
  2. Upload the report (SARIF, JSON or SBOM) through the scan-report ingest API so Slipway can show findings on the run.
  3. Add a CEL policy gate on the environment, for example scan.critical == 0.

Illustrative configuration. Non-secret settings are stored as integration config; credentials are stored as encrypted Slipway secrets and referenced by name.

steps:
- name: Scan image
run: trivy image --format sarif --output trivy.sarif ${{ needs.build.outputs.image }}
- name: Keep the report
uses: slipway/artifact-upload@v1
with: { name: trivy-report, path: trivy.sarif }

Reports are ingested through IntegrationService.IngestScanReport (see the API docs). A first-party upload step is planned.