Skip to content

Commit 4cde25e

Browse files
committed
build(deps): add trivy-version input for specifying Trivy CLI version
1 parent a973fe1 commit 4cde25e

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ and a [.golangci.yml](https://golangci-lint.run/usage/configuration/).
296296
| token | | | GitHub token for authentication (typically ${{ secrets.GITHUB_TOKEN }}) |
297297
| trivy-action-db | x | | Trivy vulnerability database configuration |
298298
| trivy-action-java-db | x | | Trivy Java vulnerability database configuration |
299+
| trivy-version | x | | Trivy CLI version used by aquasecurity/trivy-action (for example, "v0.69.2") |
299300

300301

301302
Note: If an **x** is registered in the Default column, refer to the

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ inputs:
9595
default: "public.ecr.aws/aquasecurity/trivy-java-db:1"
9696
description: |
9797
OCI repository to retrieve trivy-java-db from.
98+
trivy-version:
99+
default: "v0.69.2"
100+
description: |
101+
The Trivy CLI version used by aquasecurity/trivy-action.
98102
runs:
99103
using: "composite"
100104
steps:
@@ -209,6 +213,7 @@ runs:
209213
with:
210214
scan-type: "fs"
211215
scan-ref: "."
216+
version: ${{ inputs.trivy-version }}
212217
exit-code: "1"
213218
ignore-unfixed: true
214219
severity: "CRITICAL,HIGH"
@@ -221,6 +226,7 @@ runs:
221226
with:
222227
scan-type: "fs"
223228
scan-ref: "."
229+
version: ${{ inputs.trivy-version }}
224230
exit-code: "1"
225231
ignore-unfixed: true
226232
severity: "CRITICAL,HIGH"

0 commit comments

Comments
 (0)