From 763ebeaa22a0079984eadbafd0d3831026bc4642 Mon Sep 17 00:00:00 2001 From: Alessandro Fael Garcia Date: Tue, 7 May 2024 09:19:07 -0600 Subject: [PATCH] ci: add `workflow_dispatch` and cron jobs both the Scorecard and the S3 gateway build actions could use from both: * being able to run the workflow on demand * running the workflow once a week in case there's been no new builds/PRs in the last week --- .github/workflows/ossf-scorecard.yml | 5 +++-- .github/workflows/s3-gateway.yml | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml index 94f81769..ef385ef8 100644 --- a/.github/workflows/ossf-scorecard.yml +++ b/.github/workflows/ossf-scorecard.yml @@ -4,11 +4,12 @@ name: OSSF Scorecard on: # For Branch-Protection check. Only the default branch is supported. See https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection. branch_protection_rule: + push: + branches: [main] # To guarantee Maintained check is occasionally updated. See https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained. schedule: - cron: "0 0 * * 1" - push: - branches: [main] + workflow_dispatch: # Declare default permissions as read only. permissions: read-all jobs: diff --git a/.github/workflows/s3-gateway.yml b/.github/workflows/s3-gateway.yml index 62e5afee..f5c1d58d 100644 --- a/.github/workflows/s3-gateway.yml +++ b/.github/workflows/s3-gateway.yml @@ -5,6 +5,9 @@ on: branches: [main] pull_request: branches: [main] + schedule: + - cron: "0 0 * * 1" + workflow_dispatch: env: CI: true permissions: read-all