-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add cifuzz CI config for OSS-Fuzz #7625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ToastCheng
wants to merge
6
commits into
quantumlib:main
Choose a base branch
from
ToastCheng:i7515-fuzz
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
101586c
Add cifuzz config for OSS-Fuzz
ToastCheng fd68614
Trim trailing blank line
pavoljuhas 31f8647
Fix case of the "Cirq" project name for oss-fuzz
pavoljuhas b65f548
Revert "Fix case of the "Cirq" project name for oss-fuzz"
pavoljuhas 39822da
Update fuzz CI config to better align the project
ToastCheng d09f430
Merge branch 'main' into i7515-fuzz
mhucka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: CIFuzz | ||
| run-name: >- | ||
| Perform fuzz testing on pull request ${{github.event.pull_request.number}} | ||
| by ${{github.actor}} | ||
| on: | ||
| pull_request: | ||
| workflow_dispatch: | ||
| permissions: {} | ||
ToastCheng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@c74d76768368951823cffca3bbd15eaa82093178 | ||
| with: | ||
| oss-fuzz-project-name: cirq | ||
| language: python | ||
| - name: Run Fuzzers | ||
| uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@c74d76768368951823cffca3bbd15eaa82093178 | ||
| 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 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.