Skip to content

Commit

Permalink
ci: add cache step
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Oct 3, 2024
1 parent 9f019ca commit 521f5e4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/trivy-action-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Restore trivy cache
uses: actions/cache@v4
with:
path: cache
key: trivy-cache
restore-keys:
trivy-cache

- name: Run Trivy vulnerability scanner in fs mode
uses: aquasecurity/trivy-action@0.24.0
with:
scan-type: 'fs'
scan-ref: '.'
scan-ref: '.'
cache-dir: "./cache"

0 comments on commit 521f5e4

Please sign in to comment.