try again
CI / Test Merge SARIF Files (pull_request) Successful in 4s
CI / Test Setup DB (pull_request) Successful in 6s
CI / Test Get Images From Files (pull_request) Successful in 5s
CI / Test scan-image (pull_request) Failing after 6s
CI / Test scan-fs (pull_request) Failing after 1m14s
CI / Test scan-config (pull_request) Failing after 1m2s
CI / Test Merge SARIF Files (pull_request) Successful in 4s
CI / Test Setup DB (pull_request) Successful in 6s
CI / Test Get Images From Files (pull_request) Successful in 5s
CI / Test scan-image (pull_request) Failing after 6s
CI / Test scan-fs (pull_request) Failing after 1m14s
CI / Test scan-config (pull_request) Failing after 1m2s
This commit is contained in:
@@ -7,7 +7,7 @@ branding:
|
||||
|
||||
inputs:
|
||||
cache-dir:
|
||||
description: "Path to the Trivy cache directory (default: ${{runner.temp}}/trivy)"
|
||||
description: "Trivy cache directory on the job filesystem (default under runner.temp—shared with Docker-in-Docker sidecars; bind-mounted into the Trivy container)"
|
||||
required: false
|
||||
default: "${{ runner.temp }}/trivy"
|
||||
trivy-version:
|
||||
@@ -27,6 +27,9 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
echo "current-date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
|
||||
- name: Ensure Trivy cache directory exists
|
||||
shell: bash
|
||||
run: mkdir -p "${{ inputs.cache-dir }}"
|
||||
- id: restore-db
|
||||
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
|
||||
with:
|
||||
@@ -53,4 +56,4 @@ runs:
|
||||
--security-opt apparmor=docker-default \
|
||||
--tmpfs /tmp:rw,noexec,nosuid,nodev,size=1g \
|
||||
--mount type=bind,src=${{ inputs.cache-dir }},dst=/cache \
|
||||
${{ inputs.trivy-version }} fs --download-db-only --cache-dir /cache
|
||||
${{ inputs.trivy-version }} fs --download-db-only --cache-dir /cache --offline-scan --exit-code 0
|
||||
|
||||
Reference in New Issue
Block a user