Pillow/.github/workflows/cifuzz.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.4 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:
2023-10-15 20:46:25 +03:00
branches:
- "**"
2021-02-27 14:54:38 +03:00
paths:
- ".github/workflows/cifuzz.yml"
- ".github/workflows/wheels-dependencies.sh"
2021-02-27 14:54:38 +03:00
- "**.c"
- "**.h"
pull_request:
paths:
- ".github/workflows/cifuzz.yml"
- ".github/workflows/wheels-dependencies.sh"
2021-02-27 14:54:38 +03:00
- "**.c"
- "**.h"
workflow_dispatch:
2021-02-27 14:54:38 +03:00
permissions:
contents: read
concurrency:
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'
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@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
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