Skip to content

Perform fuzz testing on pull request 7625 by ToastCheng #7

Perform fuzz testing on pull request 7625 by ToastCheng

Perform fuzz testing on pull request 7625 by ToastCheng #7

Workflow file for this run

name: CIFuzz
run-name: >-
Perform fuzz testing on pull request ${{github.event.pull_request.number}}
by ${{github.actor}}
on:
pull_request:
workflow_dispatch:
permissions: {}
concurrency:
# Cancel any previously-started but still active runs on the same branch.
cancel-in-progress: true
group: ${{github.workflow}}-${{github.event.pull_request.number||github.ref}}
jobs:
fuzzing:
name: Fuzz testing
runs-on: ubuntu-24.04
permissions:
security-events: write
steps:
- name: Build Fuzzers
id: build
uses: ToastCheng/oss-fuzz/infra/cifuzz/actions/build_fuzzers@7deb0b7042b7765ea3827cc534fedfb359f051ca
with:
oss-fuzz-project-name: cirq
language: python
- name: Run Fuzzers
uses: ToastCheng/oss-fuzz/infra/cifuzz/actions/build_fuzzers@7deb0b7042b7765ea3827cc534fedfb359f051ca
with:
oss-fuzz-project-name: cirq
language: python
fuzz-seconds: 600
output-sarif: true
- name: Upload artifacts to workflow page if a failure occurred
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
path: ./out/artifacts
- name: Upload SARIF file to results page
if: always() && steps.build.outcome == 'success'
uses: github/codeql-action/upload-sarif@8dca8a82e2fa1a2c8908956f711300f9c4a4f4f6 # v2
with:
# Path to SARIF file relative to the root of the repository
sarif_file: cifuzz-sarif/results.sarif
checkout_path: cifuzz-sarif