chore(setup-db): change cache-dir default to runner.temp #13

Merged
t.behrendt merged 4 commits from chore-change-setup-db-cache-dir-default into main 2025-11-08 19:38:07 +01:00
2 changed files with 9 additions and 7 deletions
+2 -5
View File
@@ -31,10 +31,7 @@ jobs:
with: with:
version: v0.66.0 version: v0.66.0
- name: Setup DB - name: Setup DB
id: setup-db
uses: ./setup-db uses: ./setup-db
with:
cache-dir: ${{ runner.temp }}/trivy
- name: Run Trivy - name: Run Trivy
env: run: trivy fs --skip-db-update --cache-dir ${{ steps.setup-db.outputs.cache-dir }} .
TRIVY_CACHE_DIR: ${{ runner.temp }}/trivy
run: trivy fs --skip-db-update .
+7 -2
View File
@@ -7,9 +7,14 @@ branding:
inputs: inputs:
cache-dir: 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 required: false
default: "~/.cache/trivy" default: "${{ runner.temp }}/trivy"
outputs:
cache-dir:
description: "Path to the Trivy cache directory"
value: ${{ inputs.cache-dir }}
runs: runs:
using: "composite" using: "composite"