2024-05-10 13:50:43 +00:00
|
|
|
name: Pull Request Fuzzing
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
paths-ignore:
|
|
|
|
- 'DOCS/**'
|
|
|
|
- 'TOOLS/lua/**'
|
|
|
|
- '.editorconfig'
|
2024-07-29 22:17:57 +00:00
|
|
|
- '.github/ISSUE_TEMPLATE/**'
|
|
|
|
- '.github/PULL_REQUEST_TEMPLATE'
|
2024-05-10 13:50:43 +00:00
|
|
|
- '.gitignore'
|
|
|
|
- 'Copyright'
|
|
|
|
- 'README.md'
|
|
|
|
- 'RELEASE_NOTES'
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
|
|
Fuzzing:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
security-events: write
|
2024-07-17 01:59:32 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
sanitizer: [address, undefined, memory]
|
2024-05-10 13:50:43 +00:00
|
|
|
steps:
|
2024-07-17 01:59:32 +00:00
|
|
|
- name: Build Fuzzers (${{ matrix.sanitizer }})
|
2024-05-10 13:50:43 +00:00
|
|
|
id: build
|
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'mpv'
|
|
|
|
language: c
|
2024-07-17 01:59:32 +00:00
|
|
|
sanitizer: ${{ matrix.sanitizer }}
|
|
|
|
- name: Run Fuzzers (${{ matrix.sanitizer }})
|
2024-05-10 13:50:43 +00:00
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'mpv'
|
|
|
|
language: c
|
|
|
|
fuzz-seconds: 1200
|
2024-07-17 01:59:32 +00:00
|
|
|
sanitizer: ${{ matrix.sanitizer }}
|
2024-08-05 22:38:51 +00:00
|
|
|
report-ooms: true
|
|
|
|
report-timeouts: true
|
2024-05-10 13:50:43 +00:00
|
|
|
output-sarif: true
|
|
|
|
- name: Upload Crash
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
if: failure() && steps.build.outcome == 'success'
|
|
|
|
with:
|
2024-07-17 01:59:32 +00:00
|
|
|
name: ${{ matrix.sanitizer }}-artifacts
|
2024-05-10 13:50:43 +00:00
|
|
|
path: ./out/artifacts
|
|
|
|
- name: Upload Sarif
|
|
|
|
if: always() && steps.build.outcome == 'success'
|
|
|
|
uses: github/codeql-action/upload-sarif@v3
|
|
|
|
with:
|
|
|
|
sarif_file: cifuzz-sarif/results.sarif
|
|
|
|
checkout_path: cifuzz-sarif
|