CloudBees action: Scan with Trivy

1 minute read

Use this action to scan container images with the Trivy scanner, to identify and fix security vulnerabilities.

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

Table 1. Input details
Input name Data type Required? Description

image-location

String

Yes

The container image location.

image-tag

String

Yes

The container image tag.

server-url

String

Yes

The Trivy server URL.

Usage example

In your YAML file, add:

- name: Scan with Trivy uses: cloudbees-io/trivy-scan-container@v1 with: image-location: "example.com/local/alpine" image-tag: "latest" server-url: "${{ vars.TRIVY_SERVER_URL }}"