Skip to content

Commit 87e671c

Browse files
authored
Don't run Scorecard and OSV on merge queue events (#957)
When Scorecard runs on merge events in the merge queue, it seems to produce an error: "Only the default branch main is supported". I don't fully understand why, because the `merge_queue` explicitly had a branch condition to only run on `main`. (Maybe the error is not about `main`, but about the fact that it's `main` in someone's fork?) However, this made me realize that it's not essential to run Scorecard and OSV on merge queue events because they've already been run on the pull request, and in addition, we do regular scheduled execution over the whole code base.
1 parent f769257 commit 87e671c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

.github/workflows/osv-scanner.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ on:
3232
branches:
3333
- main
3434

35-
# Support merge queues.
36-
merge_group:
37-
types:
38-
- checks_requested
39-
4035
# Allow manual invocation.
4136
workflow_dispatch:
4237
inputs:

.github/workflows/scorecard-scanner.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@ on:
3030
branches:
3131
- main
3232

33-
# Support merge queues.
34-
merge_group:
35-
types:
36-
- checks_requested
37-
branches:
38-
- main
39-
4033
# Allow manual invocation.
4134
workflow_dispatch:
4235
inputs:

0 commit comments

Comments
 (0)