Skip to content

Commit

Permalink
Fixed update_trivy_cache.yaml and added cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Sep 24, 2024
1 parent d3a3954 commit 8787cd5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/update_trivy_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Update trivy cache

on:
workflow_dispatch:
pull_request:
push:
schedule:
- cron: "30 0 * * *"

jobs:
update_trivy_cache:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 8787cd5

Please sign in to comment.