Skip to content

Commit 6d27f50

Browse files
authored
Update fuzz.yml
1 parent d05a346 commit 6d27f50

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/fuzz.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,24 @@ on:
33
push:
44
branches: [master]
55
pull_request:
6-
schedule:
7-
- cron: '0 0 * * 0' # every week
86

97
jobs:
10-
11-
basic:
8+
Fuzzing:
129
runs-on: ubuntu-latest
1310
steps:
14-
- uses: actions/checkout@v2
15-
- name: Set up Python
16-
uses: actions/setup-python@v4
11+
- name: Build Fuzzers
12+
id: build
13+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
14+
with:
15+
oss-fuzz-project-name: 'markdown-it-py'
16+
- name: Run Fuzzers
17+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
18+
with:
19+
oss-fuzz-project-name: 'markdown-it-py'
20+
fuzz-seconds: 600
21+
- name: Upload Crash
22+
uses: actions/upload-artifact@v3
23+
if: failure() && steps.build.outcome == 'success'
1724
with:
18-
python-version: 3.8
19-
- name: Install dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install atheris
23-
pip install .
24-
- name: run fuzzing
25-
run: python tests/fuzz/fuzz_markdown.py
25+
name: artifacts
26+
path: ./out/artifacts

0 commit comments

Comments
 (0)