forked from aws-powertools/powertools-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.3 KB
/
on_schedule_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
# Run fuzzing against changes in Pull Requests for bug and leaks detection
name: Continuous Fuzzing (ClusterFuzzLite)
# PROCESS
#
# 1. Build a fuzzer for python for each sanitizer
# 2. Fuzz each sanitizer against entire repository
# 3. Aggregate results and upload report as an artifact
# NOTES
#
# More info: https://google.github.io/clusterfuzzlite/
on:
schedule:
- cron: '0 0/6 * * *' # Every 6th hour.
permissions: read-all
jobs:
fuzzing:
runs-on: ubuntu-latest
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
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: 3600
mode: 'batch'
sanitizer: ${{ matrix.sanitizer }}