Skip to content

Commit

Permalink
ci: add workflow_dispatch and cron jobs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alessfg committed May 7, 2024
1 parent 9834f39 commit 763ebea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ossf-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/s3-gateway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:
env:
CI: true
permissions: read-all
Expand Down

0 comments on commit 763ebea

Please sign in to comment.