-
-
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
Open
sethmlarson
wants to merge
11
commits into
python:main
Choose a base branch
from
sethmlarson:detect-library-fuzzers-for-prs
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.
+171
−47
Open
Changes from all commits
Commits
Show all changes
11 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 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
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,53 @@ | ||
| # 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 | ||
| timeout-minutes: | ||
| description: Timeout in minutes for the action | ||
| required: false | ||
| default: 60 | ||
| type: number | ||
|
|
||
| jobs: | ||
| cifuzz: | ||
| name: >- | ||
| ${{ inputs.oss-fuzz-project-name }} | ||
| (${{ inputs.sanitizer }}) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: ${{ inputs.timeout-minutes }} | ||
| 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.
Uh oh!
There was an error while loading. Please reload this page.