diff --git a/.github/workflows/update-trivy-cache.yaml b/.github/workflows/update-trivy-cache.yaml index f131f04..2a9ac15 100644 --- a/.github/workflows/update-trivy-cache.yaml +++ b/.github/workflows/update-trivy-cache.yaml @@ -4,7 +4,7 @@ name: Update Trivy Cache on: schedule: - - cron: '0 1 * * *' # Run daily at midnight UTC + - cron: '30 1 * * *' # Run daily at midnight UTC workflow_dispatch: # Allow manual triggering jobs: @@ -18,7 +18,6 @@ jobs: - name: Download and extract the vulnerability DB run: | mkdir -p $GITHUB_WORKSPACE/.cache/trivy/db - oras copy ghcr.io/aquasecurity/trivy-db:2 ghcr.io/tiryoh/aquasecurity/trivy-db:2 || echo "err" oras pull ghcr.io/aquasecurity/trivy-db:2 || oras pull ghcr.io/tiryoh/aquasecurity/trivy-db:2 tar -xzf db.tar.gz -C $GITHUB_WORKSPACE/.cache/trivy/db rm db.tar.gz @@ -26,7 +25,6 @@ jobs: - name: Download and extract the Java DB run: | mkdir -p $GITHUB_WORKSPACE/.cache/trivy/java-db - oras copy ghcr.io/aquasecurity/trivy-java-db:1 ghcr.io/tiryoh/aquasecurity/trivy-java-db:1 || echo "err" oras pull ghcr.io/aquasecurity/trivy-java-db:1 || oras pull ghcr.io/tiryoh/aquasecurity/trivy-java-db:1 tar -xzf javadb.tar.gz -C $GITHUB_WORKSPACE/.cache/trivy/java-db rm javadb.tar.gz