2020-12-27 20:09:35 +03:00
|
|
|
name: CIFuzz
|
2021-11-30 23:14:34 +03:00
|
|
|
|
2021-02-27 14:54:38 +03:00
|
|
|
on:
|
|
|
|
push:
|
2023-10-15 20:46:25 +03:00
|
|
|
branches:
|
|
|
|
- "**"
|
2021-02-27 14:54:38 +03:00
|
|
|
paths:
|
2023-03-06 02:02:55 +03:00
|
|
|
- ".github/workflows/cifuzz.yml"
|
2024-10-02 12:17:13 +03:00
|
|
|
- ".github/workflows/wheels-dependencies.sh"
|
2021-02-27 14:54:38 +03:00
|
|
|
- "**.c"
|
|
|
|
- "**.h"
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2023-03-06 02:02:55 +03:00
|
|
|
- ".github/workflows/cifuzz.yml"
|
2024-10-02 12:17:13 +03:00
|
|
|
- ".github/workflows/wheels-dependencies.sh"
|
2021-02-27 14:54:38 +03:00
|
|
|
- "**.c"
|
|
|
|
- "**.h"
|
2021-11-30 23:14:34 +03:00
|
|
|
workflow_dispatch:
|
2021-02-27 14:54:38 +03:00
|
|
|
|
2022-08-26 15:48:12 +03:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-03-06 02:02:55 +03:00
|
|
|
concurrency:
|
2022-09-26 15:16:33 +03:00
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-12-27 20:09:35 +03:00
|
|
|
jobs:
|
|
|
|
Fuzzing:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Build Fuzzers
|
|
|
|
id: build
|
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'pillow'
|
2021-02-20 14:44:49 +03:00
|
|
|
language: python
|
2020-12-27 20:09:35 +03:00
|
|
|
dry-run: false
|
|
|
|
- name: Run Fuzzers
|
2021-02-27 13:46:19 +03:00
|
|
|
id: run
|
2020-12-27 20:09:35 +03:00
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'pillow'
|
|
|
|
fuzz-seconds: 600
|
2021-02-20 14:44:49 +03:00
|
|
|
language: python
|
2020-12-27 20:09:35 +03:00
|
|
|
dry-run: false
|
2021-02-27 13:46:19 +03:00
|
|
|
- name: Upload New Crash
|
2023-12-15 06:45:41 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2020-12-27 20:09:35 +03:00
|
|
|
if: failure() && steps.build.outcome == 'success'
|
|
|
|
with:
|
|
|
|
name: artifacts
|
|
|
|
path: ./out/artifacts
|
2021-02-27 13:46:19 +03:00
|
|
|
- name: Upload Legacy Crash
|
2023-12-15 06:45:41 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-02-27 13:54:33 +03:00
|
|
|
if: steps.run.outcome == 'success'
|
2021-02-27 13:46:19 +03:00
|
|
|
with:
|
|
|
|
name: crash
|
|
|
|
path: ./out/crash*
|
2021-02-28 19:17:33 +03:00
|
|
|
- name: Fail on legacy crash
|
|
|
|
if: success()
|
|
|
|
run: |
|
|
|
|
[ ! -e out/crash-* ]
|
|
|
|
echo No legacy crash detected
|