Pillow/.github/workflows/cifuzz.yml

53 lines
1.1 KiB
YAML
Raw Normal View History

2020-12-27 20:09:35 +03:00
name: CIFuzz
2021-02-27 14:54:38 +03:00
on:
push:
paths:
- "**.c"
- "**.h"
pull_request:
paths:
- "**.c"
- "**.h"
workflow_dispatch:
2021-02-27 14:54:38 +03:00
permissions:
contents: read
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'
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
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
uses: actions/upload-artifact@v3
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
uses: actions/upload-artifact@v3
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