f7ecf84dfe
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>
952 B
952 B
Setup Trivy Action
A reusable Gitea Action that downloads and sets up the Trivy binary for vulnerability scanning.
Usage
Basic Usage
- 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
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 |