From 8e2c7721fe533896cc04d562d315f8aafb4e216c Mon Sep 17 00:00:00 2001 From: Joshua Fernandes Date: Thu, 7 Nov 2024 13:46:10 +1000 Subject: [PATCH] add a trivy cache workflow --- .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 000000000..ae8238de8 --- /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