Skip to content

Commit 09af7fd

Browse files
committed
Update fuzz CI config to better align the project
1 parent b65f548 commit 09af7fd

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/cifuzz.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,44 @@
11
name: CIFuzz
2-
on: [pull_request]
2+
run-name: >-
3+
Perform fuzz testing on pull request ${{github.event.pull_request.number}}
4+
by ${{github.actor}}
5+
on:
6+
pull_request:
7+
workflow_dispatch:
38
permissions: {}
9+
concurrency:
10+
# Cancel any previously-started but still active runs on the same branch.
11+
cancel-in-progress: true
12+
group: ${{github.workflow}}-${{github.event.pull_request.number||github.ref}}
413
jobs:
5-
Fuzzing:
6-
runs-on: ubuntu-latest
14+
fuzzing:
15+
name: Fuzz testing
16+
runs-on: ubuntu-24.04
717
permissions:
818
security-events: write
919
steps:
1020
- name: Build Fuzzers
1121
id: build
12-
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
22+
uses: ToastCheng/oss-fuzz/infra/cifuzz/actions/build_fuzzers@7deb0b7042b7765ea3827cc534fedfb359f051ca
1323
with:
14-
oss-fuzz-project-name: cirq
24+
oss-fuzz-project-name: 'cirq'
1525
language: python
1626
- name: Run Fuzzers
17-
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
27+
uses: ToastCheng/oss-fuzz/infra/cifuzz/actions/run_fuzzers@7deb0b7042b7765ea3827cc534fedfb359f051ca
1828
with:
19-
oss-fuzz-project-name: cirq
29+
oss-fuzz-project-name: 'cirq'
2030
language: python
2131
fuzz-seconds: 600
2232
output-sarif: true
23-
- name: Upload Crash
24-
uses: actions/upload-artifact@v4
33+
- name: Upload artifacts to workflow page if a failure occurred
34+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
2535
if: failure() && steps.build.outcome == 'success'
2636
with:
2737
name: artifacts
2838
path: ./out/artifacts
29-
- name: Upload Sarif
39+
- name: Upload SARIF file to results page
3040
if: always() && steps.build.outcome == 'success'
31-
uses: github/codeql-action/upload-sarif@v2
41+
uses: github/codeql-action/upload-sarif@8dca8a82e2fa1a2c8908956f711300f9c4a4f4f6 # v2
3242
with:
3343
# Path to SARIF file relative to the root of the repository
3444
sarif_file: cifuzz-sarif/results.sarif

0 commit comments

Comments
 (0)