Skip to content

cloudbees-io/trivy-scan-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CloudBees action: Scan with Trivy

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

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 }}"

License

This code is made available under the MIT license.

References