From 8787cd5c25609dcf6fe2714010bca91cad97d4a4 Mon Sep 17 00:00:00 2001 From: Thomas Ubensee <34603111+tomuben@users.noreply.github.com> Date: Tue, 24 Sep 2024 08:55:03 -0300 Subject: [PATCH] Fixed update_trivy_cache.yaml and added cron job --- .github/workflows/update_trivy_cache.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_trivy_cache.yaml b/.github/workflows/update_trivy_cache.yaml index 8bb1d50ef..77cab1fcd 100644 --- a/.github/workflows/update_trivy_cache.yaml +++ b/.github/workflows/update_trivy_cache.yaml @@ -2,8 +2,8 @@ name: Update trivy cache on: workflow_dispatch: - pull_request: - push: + schedule: + - cron: "30 0 * * *" jobs: update_trivy_cache: @@ -21,7 +21,6 @@ jobs: DEBIAN_FRONTEND: noninteractive - name: Fetch trivy databases run: | - cat /tmp/not_there trivy image --download-java-db-only trivy image --download-db-only @@ -41,7 +40,7 @@ jobs: with: status: ${{ job.status }} token: ${{ github.token }} - notification_title: "Release build in {repo} has {status_message}" + notification_title: "Update trivy build in {repo} has {status_message}" message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" notify_when: "failure,cancelled,warnings,skipped" env: