ci: pin actions/cache to full semver
CI / Test Setup Trivy amd64 (pull_request) Successful in 9s
CI / Test Setup DB (pull_request) Successful in 17s
CI / Test Get Images From Files (pull_request) Successful in 6s
CI / Test Merge SARIF Files (pull_request) Successful in 6s
CI / Test Setup Trivy arm64 (pull_request) Successful in 1m3s

This commit is contained in:
2026-06-13 12:49:49 +02:00
parent 5c7c84b972
commit dc1db74274
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ runs:
run: | run: |
echo "current-date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT echo "current-date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
- id: restore-db - id: restore-db
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with: with:
path: ${{ inputs.cache-dir }} path: ${{ inputs.cache-dir }}
key: trivy-db-${{ steps.current-date.outputs.current-date }} key: trivy-db-${{ steps.current-date.outputs.current-date }}
+1 -1
View File
@@ -40,7 +40,7 @@ runs:
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Cache Trivy binary - name: Cache Trivy binary
id: cache-trivy id: cache-trivy
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with: with:
path: /usr/local/bin/trivy path: /usr/local/bin/trivy
key: trivy-${{ steps.version.outputs.version }}-${{ steps.arch.outputs.arch }} key: trivy-${{ steps.version.outputs.version }}-${{ steps.arch.outputs.arch }}