Files
sec-actions/setup-trivy/README.md
T
t.behrendt f7ecf84dfe
CD / Release (push) Successful in 12s
feat(setup-trivy)!: automatically determine arch (#14)
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>
2025-11-08 19:22:30 +01:00

42 lines
952 B
Markdown

# Setup Trivy Action
A reusable Gitea Action that downloads and sets up the Trivy binary for vulnerability scanning.
## Usage
### Basic Usage
```yaml
- name: Setup Trivy
uses: your-username/trivy-actions@main/setup-trivy
with:
version: "v0.66.0" # Optional: Trivy version (default: v0.66.0)
```
### Complete Example
```yaml
name: Security Scan
on: [push, pull_request]
jobs:
security:
runs-on:
- ubuntu-latest
- linux_amd64
steps:
- 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` |