-
Notifications
You must be signed in to change notification settings - Fork 15
62 lines (51 loc) · 1.8 KB
/
weekly-fuzz.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
name: Weekly-Fuzz
on:
schedule:
- cron: '0 9 * * 1' # monday
workflow_dispatch:
jobs:
fuzz:
name: fuzz
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: '1.20'
id: go
- run: go version
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: fuzz-results
path: fuzz/server
continue-on-error: true # may not exist on first run or previous upload err
- name: Display structure of downloaded files
run: ls -R
working-directory: fuzz/server
- name: install go-fuzz
run: go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
- name: vendor go-fuzz
run: go mod vendor && git clone https://github.com/dvyukov/go-fuzz.git vendor/github.com/dvyukov/go-fuzz
- name: prepare corpus # a basic starting point
run: mkdir -p corpus && echo "/" > corpus/da39a3ee5e6b4b0d3255bfef95601890afd80709
working-directory: fuzz/server
continue-on-error: true
- name: fuzz-simple-server
run: go-fuzz-build && go-fuzz
working-directory: fuzz/server
continue-on-error: true # runs until job timeout, which would result as step error, skip and upload the result
- name: uploading current state
if: always() # even on previous timeout or cancel
uses: actions/upload-artifact@v2
with:
name: fuzz-results
path: |
fuzz/server/corpus
fuzz/server/crashers
fuzz/server/suppressions
!fuzz/**/*.zip
if-no-files-found: warn
retention-days: 14