diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml new file mode 100644 index 0000000..2af20af --- /dev/null +++ b/.github/workflows/keepalive.yml @@ -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 + diff --git a/README.md b/README.md index 978a718..8e183c4 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +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 +