Skip to content

Weekly-Fuzz

Weekly-Fuzz #127

Workflow file for this run

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@v5.0.0
with:
go-version: '1.21'
id: go
- run: go version
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- 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