feat(setup-trivy): use latest as default version (#15)
CD / Release (push) Successful in 11s

Using the "latest" released version of Trivy as the default version.
We always first resolve latest to an actual version to allow the cache to work properly.

Reviewed-on: t.behrendt/trivy-actions#15
Reviewed-by: branch-buddy <branch-buddy@t00n.de>
Co-authored-by: Timo Behrendt <t.behrendt@t00n.de>
Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #15.
This commit is contained in:
2025-11-08 19:48:17 +01:00
committed by t.behrendt
parent 0c324d36cf
commit 8df2386e42
4 changed files with 19 additions and 16 deletions
+4 -6
View File
@@ -10,7 +10,7 @@ A reusable Gitea Action that downloads and sets up the Trivy binary for vulnerab
- name: Setup Trivy
uses: your-username/trivy-actions@main/setup-trivy
with:
version: "v0.66.0" # Optional: Trivy version (default: v0.66.0)
version: "v0.66.0" # Optional: Trivy version (default: latest)
```
### Complete Example
@@ -28,14 +28,12 @@ jobs:
- uses: actions/checkout@v4
- name: Setup Trivy
uses: your-username/trivy-actions@main/setup-trivy
with:
version: "v0.66.0"
- name: Scan for vulnerabilities
run: trivy fs .
```
## Inputs
| Input | Description | Required | Default |
| --------- | ----------------------------------------- | -------- | --------- |
| `version` | Trivy version to download (e.g., v0.66.0) | No | `v0.66.0` |
| Input | Description | Required | Default |
| --------- | ----------------------------------------- | -------- | -------- |
| `version` | Trivy version to download (e.g., v0.66.0) | No | `latest` |