Skip to content

Commit

Permalink
BC-8372 - fix cache nameing
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Nov 7, 2024
1 parent 24a811e commit 11a6a7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,14 @@ jobs:
contents: read
security-events: write
steps:
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Restore cached trivy DBs
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/.cache/trivy
key: cache-trivy
key: cache-trivy-${{ steps.date.outputs.date }}
- name: Checkout code
uses: actions/checkout@v4

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
- name: Setup oras
uses: oras-project/setup-oras@v1

- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT

- name: Download and extract the vulnerability DB
run: |
mkdir -p $GITHUB_WORKSPACE/.cache/trivy/db
Expand All @@ -32,4 +36,4 @@ jobs:
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/.cache/trivy
key: cache-trivy
key: cache-trivy-${{ steps.date.outputs.date }}

0 comments on commit 11a6a7f

Please sign in to comment.