chore(setup-db): change cache-dir default to runner.temp (#13)
CD / Release (push) Successful in 12s

Reviewed-on: t.behrendt/trivy-actions#13
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 #13.
This commit is contained in:
2025-11-08 19:38:06 +01:00
committed by t.behrendt
parent f7ecf84dfe
commit 0c324d36cf
2 changed files with 9 additions and 7 deletions
+2 -5
View File
@@ -31,10 +31,7 @@ jobs:
with:
version: v0.66.0
- name: Setup DB
id: 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 .
run: trivy fs --skip-db-update --cache-dir ${{ steps.setup-db.outputs.cache-dir }} .
+7 -2
View File
@@ -7,9 +7,14 @@ branding:
inputs:
cache-dir:
description: "Path to the Trivy cache directory (default: ~/.cache/trivy)"
description: "Path to the Trivy cache directory (default: ${{runner.temp}}/trivy)"
required: false
default: "~/.cache/trivy"
default: "${{ runner.temp }}/trivy"
outputs:
cache-dir:
description: "Path to the Trivy cache directory"
value: ${{ inputs.cache-dir }}
runs:
using: "composite"