From a137ee221def25c04011c2cfac1b4a5ed9bae4d5 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 9 Sep 2024 10:08:19 +0800 Subject: [PATCH] CI: Change schedule of cargo-deny and trivvy to daily run Signed-off-by: Wei Liu --- .github/workflows/deny.yml | 9 ++++++++- .github/workflows/trivy.yml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index 4a75d67..13b24cb 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -1,5 +1,12 @@ name: cargo-deny -on: [push, pull_request] +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '0 0 * * *' permissions: contents: read diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 8e15f49..c5df48f 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -12,7 +12,7 @@ on: # The branches below must be a subset of the branches above branches: [ "main" ] schedule: - - cron: '0 0 * * 1' + - cron: '0 0 * * *' permissions: contents: read