Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
馃И CI: Add fuzzing workflow for PRs (#262)
This action runs fuzzing for a brief period of time, only against the actual code added in the PR. It is intended as a relatively quick check, to guard against code introducing crashes in the Markdown parsing, which should in principle always run against any text input. See: https://google.github.io/oss-fuzz/getting-started/continuous-integration/#how-it-works
- Loading branch information
1 parent
e717248
commit 2d46a43
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: fuzzing | ||
|
||
# This action runs fuzzing for a brief period of time, | ||
# only aginst the actual code added in the PR. | ||
# It is intended a relatively quick check, | ||
# to guard against code introducing crashes in the Markdown parsing, | ||
# which should in principle always run against any text input. | ||
# See: https://google.github.io/oss-fuzz/getting-started/continuous-integration/#how-it-works | ||
|
||
on: | ||
pull_request: | ||
|
||
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: 'markdown-it-py' | ||
language: python | ||
- name: Run Fuzzers | ||
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master | ||
with: | ||
oss-fuzz-project-name: 'markdown-it-py' | ||
language: python | ||
fuzz-seconds: 60 | ||
- name: Upload Crash | ||
uses: actions/upload-artifact@v3 | ||
if: failure() && steps.build.outcome == 'success' | ||
with: | ||
name: artifacts | ||
path: ./out/artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters