forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.52 KB
/
on_pr_fuzzing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Run fuzzing against changes in Pull Requests for bug and leaks detection
name: Fuzzing (ClusterFuzzLite)
# PROCESS
#
# 1. Build a fuzzer for python for each sanitizer
# 2. Fuzz each sanitizer against each change in PR
# 3. Upload report as an artifact
# NOTES
#
# More info: https://google.github.io/clusterfuzzlite/
on:
pull_request:
paths:
- '**'
permissions: read-all
jobs:
fuzzing:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ matrix.sanitizer }}-${{ github.ref }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
sanitizer:
- address # memory safety issues
- undefined # undefined behaviour (e.g., integer workflows, dangling pointers)
- memory # uninitialized memory (e.g., C-extensions)
steps:
- name: Build Fuzzers (${{ matrix.sanitizer }})
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@1e163f06cba7820da5154ac9fe1a32d7fe6f73a3 # v1
with:
language: python
github-token: ${{ secrets.GITHUB_TOKEN }}
sanitizer: ${{ matrix.sanitizer }}
- name: Run Fuzzers (${{ matrix.sanitizer }})
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@1e163f06cba7820da5154ac9fe1a32d7fe6f73a3 # v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 90 # shorter interval to not block PR; we run longer interval async for increased safety
mode: 'code-change'
sanitizer: ${{ matrix.sanitizer }}