-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-143572: Run 'python3-libraries' fuzzer in CI using CIFuzz #143749
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
Merged
hugovk
merged 12 commits into
python:main
from
sethmlarson:detect-library-fuzzers-for-prs
Jan 16, 2026
+161
−47
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2623d60
Run 'python3-libraries' fuzzer in CI using CIFuzz
sethmlarson 88a5b0a
Add outputs to compute-changes job
sethmlarson 55ff6a4
Move to reusable workflow approach
sethmlarson 2a9672f
Merge branch 'main' into detect-library-fuzzers-for-prs
hugovk 3958c5d
Move to matrix with excludes approach
sethmlarson e657f59
Use chained equals for now instead
sethmlarson 407847a
Apply suggestions from code review
sethmlarson 0f0b28d
Parametrize the CIFuzz job names
sethmlarson 4c8ddd4
Change sentinel value, add explanation
sethmlarson 880e553
Apply suggestions from code review
sethmlarson fb26fc6
Apply suggestions from code review
sethmlarson 0872069
Apply suggestions from code review
sethmlarson 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
Some comments aren't visible on the classic Files Changed page.
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
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,46 @@ | ||
| # CIFuzz job based on https://google.github.io/oss-fuzz/getting-started/continuous-integration/ | ||
| name: Reusable CIFuzz | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| oss-fuzz-project-name: | ||
| description: OSS-Fuzz project name | ||
| required: true | ||
| type: string | ||
| sanitizer: | ||
| description: OSS-Fuzz sanitizer | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| cifuzz: | ||
| name: ${{ inputs.oss-fuzz-project-name }} (${{ inputs.sanitizer }}) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
| steps: | ||
| - name: Build fuzzers (${{ inputs.sanitizer }}) | ||
| id: build | ||
| uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master | ||
| with: | ||
| oss-fuzz-project-name: ${{ inputs.oss-fuzz-project-name }} | ||
| sanitizer: ${{ inputs.sanitizer }} | ||
| - name: Run fuzzers (${{ inputs.sanitizer }}) | ||
| uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | ||
| with: | ||
| fuzz-seconds: 600 | ||
| oss-fuzz-project-name: ${{ inputs.oss-fuzz-project-name }} | ||
| output-sarif: true | ||
| sanitizer: ${{ inputs.sanitizer }} | ||
| - name: Upload crash | ||
| if: failure() && steps.build.outcome == 'success' | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: ${{ inputs.sanitizer }}-artifacts | ||
| path: ./out/artifacts | ||
| - name: Upload SARIF | ||
| if: always() && steps.build.outcome == 'success' | ||
| uses: github/codeql-action/upload-sarif@v4 | ||
| with: | ||
| sarif_file: cifuzz-sarif/results.sarif | ||
| checkout_path: cifuzz-sarif |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reflecting on this a bit, I think we could've interpolated one of the factors to produce separate categories.
We can still do this in follow-ups if you @sethmlarson think it's a good idea.