From ba2e9855faf377bffd9fd89d57e110faccbd3c4c Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Thu, 7 Nov 2024 11:00:32 +1000 Subject: [PATCH] add a step to cache trivy's db (#292) --- .github/workflows/trivy-cache.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/trivy-cache.yml diff --git a/.github/workflows/trivy-cache.yml b/.github/workflows/trivy-cache.yml new file mode 100644 index 0000000..ae8238d --- /dev/null +++ b/.github/workflows/trivy-cache.yml @@ -0,0 +1,19 @@ +--- +name: trivy-cache-db + +on: + pull_request: + branches: + - main + workflow_dispatch: + schedule: + - cron: "0 1 * * *" + +jobs: + trivy: + name: Run trivy scanner + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Trivy Cache + uses: ConsenSys/docs-gha/trivy-update-cache@main