Use this action to scan container images with the Trivy scanner, to identify and fix security vulnerabilities.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
Yes |
The container image location. |
|
String |
Yes |
The container image tag. |
|
String |
Yes |
The Trivy server URL. |
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 }}"
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.