feat: add setup-db (#11)
CD / Release (push) Successful in 14s

Reviewed-on: t.behrendt/trivy-actions#11
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 #11.
This commit is contained in:
2025-11-08 17:31:15 +01:00
committed by t.behrendt
parent fa5097ea2e
commit 463eaebe9f
3 changed files with 95 additions and 0 deletions
+20
View File
@@ -18,3 +18,23 @@ jobs:
architecture: amd64
- name: Run Trivy
run: trivy --version
test-setup-db:
name: Test Setup DB
runs-on:
- ubuntu-latest
- linux_amd64
steps:
- uses: actions/checkout@v5
- uses: ./setup-trivy
with:
version: v0.66.0
architecture: amd64
- name: Setup DB
uses: ./setup-db
with:
cache-dir: ${{ runner.temp }}/trivy
- name: Run Trivy
env:
TRIVY_CACHE_DIR: ${{ runner.temp }}/trivy
run: trivy fs --skip-db-update .