-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (62 loc) · 2.31 KB
/
cflite_cron.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Testing in ClusterFuzzLite (Scheduled)
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Once a day at midnight.
permissions: read-all
jobs:
# Code Coverage Report Generation ("coverage").
# Code coverage report generation is a helper function that can be used when
# batch fuzzing is enabled. This mode uses the corpus developed during batch
# fuzzing to generate an HTML coverage report that shows which parts of your code
# are covered by fuzzing.
Coverage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Build fuzzing tests
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@main
with:
sanitizer: coverage
- name: Run fuzzing tests
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@main
with:
fuzz-seconds: 600
github-token: ${{ secrets.GITHUB_TOKEN }}
minimize-crashes: true
mode: 'coverage'
parallel-fuzzing: true
report-unreproducible-crashes: true
storage-repo-branch-coverage: gh-pages
storage-repo-branch: cfl
storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/ligurio/lua-c-api-corpus
# Corpus Pruning ("prune").
# Over time, redundant testcases will get introduced into your fuzzer's corpuses
# during batch fuzzing. Corpus pruning is a helper function that minimizes the
# corpuses by removing corpus files (testcases) that do not increase the fuzzer's
# code coverage.
Pruning:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Build Fuzzers
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@main
- name: Run Fuzzers
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@main
with:
fuzz-seconds: 1800
github-token: ${{ secrets.GITHUB_TOKEN }}
minimize-crashes: true
mode: 'prune'
output-sarif: true
parallel-fuzzing: true
report-unreproducible-crashes: true
storage-repo-branch-coverage: gh-pages
storage-repo-branch: cfl
storage-repo: https://${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/ligurio/lua-c-api-corpus