Set up your GitHub Actions workflow with a specific version of Trivy
# ...
steps:
- name: Install Trivy
uses: aquasecurity/setup-trivy@v0.1.0
# ...
steps:
- name: Install Trivy
uses: aquasecurity/setup-trivy@v0.1.0
with:
version: v0.56.1
setup-trivy
uses actions/cache
under the hood but requires less configuration settings. This caches the trivy binary so that next time you run, instead of downloading the binary it is loaded from the cache. This is not the same cache as other Trivy artifacts such as trivy-db
and trivy-java-db
.
The cache input is optional, and caching is turned off by default.
If you want to enable caching, set the cache
input to true
and specify the version
.
steps:
- name: Install Trivy
uses: aquasecurity/setup-trivy@v0.1.0
with:
version: v0.56.1
cache: true
Caching is not supported for empty and latest
versions!