From b362cfde8639b84eb59bdce1aa482890bb9f357b Mon Sep 17 00:00:00 2001 From: Steven Bal Date: Fri, 18 Oct 2024 16:25:22 +0200 Subject: [PATCH] :construction_worker: [maykinmedia/objects-api#463] Add trivy image scan --- .github/workflows/ci.yml | 2 +- .github/workflows/trivy-db-cache.yml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/trivy-db-cache.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b0731d..86c3d6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,7 +100,7 @@ jobs: id: image-name open-api-ci: - uses: maykinmedia/open-api-workflows/.github/workflows/ci.yml@v1 + uses: maykinmedia/open-api-workflows/.github/workflows/ci.yml@v3 needs: - store-reusable-workflow-vars with: diff --git a/.github/workflows/trivy-db-cache.yml b/.github/workflows/trivy-db-cache.yml new file mode 100644 index 0000000..29d9746 --- /dev/null +++ b/.github/workflows/trivy-db-cache.yml @@ -0,0 +1,10 @@ +name: Call Update Trivy Cache + +on: + workflow_dispatch: # Manual trigger for testing purposes + schedule: + - cron: '51 0 * * *' # Run daily + +jobs: + call-update-trivy-cache: + uses: maykinmedia/open-api-workflows/.github/workflows/ci.yml@v3 \ No newline at end of file