Skip to content

Commit

Permalink
PIPELINE-86: Updated readme and added a job to prevent workflow from …
Browse files Browse the repository at this point in the history
…being disabled
  • Loading branch information
Fgerthoffert authored Sep 30, 2024
1 parent 1321407 commit 7809e8d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Github Action with a cronjob trigger
on:
schedule:
- cron: "0 0 * * *"
permissions:
actions: write
jobs:
cronjob-based-github-action:
name: Cronjob based github action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gautamkrishnar/keepalive-workflow@3eb47f21355191080dca0f7662d45c192d2ef64d # v2.0.7

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

The official Trivy DB is hitting rate limit frequently due to a very high usage. The goal of this codebase is to make available a clone of the official repo for our own usage.

The workflow in this repo has been inspired by: https://github.com/aquasecurity/trivy-db/blob/main/.github/workflows/cron.yml
Configuration has been inspired from documentation available here: https://aquasecurity.github.io/trivy/v0.55/docs/advanced/air-gap/#offline-mode, with one workflow per OCI database.

Corresponding workflows:
- https://github.com/aquasecurity/trivy-checks/blob/main/.github/workflows/release.yaml
- https://github.com/aquasecurity/trivy-db/blob/main/.github/workflows/cron.yml
- https://github.com/aquasecurity/trivy-java-db/blob/main/.github/workflows/cron.yml

0 comments on commit 7809e8d

Please sign in to comment.