Skip to content

Commit db72cc1

Browse files
authored
chore: do run-bazel-fuzzers on non PRs (#9251)
As a follow up for b4632c0, we should only conditionally execute `run-bazel-fuzzers` on Pull Requests but always execute it for other events.
1 parent 6556c68 commit db72cc1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci-main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
ref: ${{ inputs.commit-sha }}
4040
- name: Filter fuzzer related files
4141
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
42+
if: github.event_name == 'pull_request'
4243
id: filter
4344
with:
4445
ref: ${{ inputs.commit-sha }}
@@ -51,16 +52,16 @@ jobs:
5152
- "**/*.bzl"
5253
- "**/*.rs"
5354
- uses: ./.github/actions/netrc
54-
if: steps.filter.outputs.fuzzers == 'true'
55+
if: github.event_name != 'pull_request' || steps.filter.outputs.fuzzers == 'true'
5556
- name: Run Libfuzzer targets
5657
uses: ./.github/actions/bazel
57-
if: steps.filter.outputs.fuzzers == 'true'
58+
if: github.event_name != 'pull_request' || steps.filter.outputs.fuzzers == 'true'
5859
with:
5960
invocation-names: libfuzzer
6061
run: ./bin/fuzzing/run-all-fuzzers.sh --libfuzzer 100
6162
- name: Run AFL targets
6263
uses: ./.github/actions/bazel
63-
if: steps.filter.outputs.fuzzers == 'true'
64+
if: github.event_name != 'pull_request' || steps.filter.outputs.fuzzers == 'true'
6465
with:
6566
invocation-names: afl
6667
run: ./bin/fuzzing/run-all-fuzzers.sh --afl 10

0 commit comments

Comments
 (0)