chore(setup-db): change cache-dir default to runner.temp (#13)
CD / Release (push) Successful in 12s
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:
@@ -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,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"
|
||||||
|
|||||||
Reference in New Issue
Block a user