feat(setup-trivy)!: automatically determine arch (#14)
CD / Release (push) Successful in 12s
CD / Release (push) Successful in 12s
Mapping x86_64 to "64bit" and aarch64 to "ARM64" as this is how Trivy names their releases. Adjusted CICD to test-run both amd64 and arm64 versions. Reviewed-on: t.behrendt/trivy-actions#14 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 #14.
This commit is contained in:
@@ -11,7 +11,6 @@ A reusable Gitea Action that downloads and sets up the Trivy binary for vulnerab
|
||||
uses: your-username/trivy-actions@main/setup-trivy
|
||||
with:
|
||||
version: "v0.66.0" # Optional: Trivy version (default: v0.66.0)
|
||||
architecture: "amd64" # Optional: amd64 or arm64 (default: amd64)
|
||||
```
|
||||
|
||||
### Complete Example
|
||||
@@ -31,14 +30,12 @@ jobs:
|
||||
uses: your-username/trivy-actions@main/setup-trivy
|
||||
with:
|
||||
version: "v0.66.0"
|
||||
architecture: "amd64"
|
||||
- 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` |
|
||||
| `architecture` | System architecture (amd64, arm64) | No | `amd64` |
|
||||
| Input | Description | Required | Default |
|
||||
| --------- | ----------------------------------------- | -------- | --------- |
|
||||
| `version` | Trivy version to download (e.g., v0.66.0) | No | `v0.66.0` |
|
||||
|
||||
Reference in New Issue
Block a user