feat(setup-trivy)!: automatically determine arch
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