Weekly-Fuzz #88
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
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 |