Skip to content

Commit 9a9f5d0

Browse files
authored
Remove workflow trigger on change in branch protection rules (#2574)
There is no need to trigger workflows with `Autoupdate pre-commit` and `Run tests suite` on any change in branch protection rules. That trigger was intended only to `Scorecard supply-chain security` workflow. Thus the PR removes that triggers.
1 parent c9b9f70 commit 9a9f5d0

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/cron-run-tests.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: Run tests suite
22
on:
3-
# For Branch-Protection check. Only the default branch is supported. See
4-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5-
branch_protection_rule:
3+
# To be able to be triggered manually
4+
workflow_dispatch:
65
# To guarantee Maintained check is occasionally updated. See
76
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
87
schedule:
98
- cron: '28 2 * * *'
10-
workflow_dispatch:
119

1210
permissions: read-all
1311

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: Autoupdate pre-commit
22

33
on:
4-
# For Branch-Protection check. Only the default branch is supported. See
5-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
6-
branch_protection_rule:
4+
# To be able to be triggered manually
5+
workflow_dispatch:
76
# To guarantee Maintained check is occasionally updated. See
87
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
98
schedule:
109
- cron: '28 2 * * 6' # Saturday at 02:28 UTC
11-
workflow_dispatch:
1210

1311
jobs:
1412
autoupdate:

0 commit comments

Comments
 (0)