@marcel91200 / caddy Mirror · read-only / commits / 9e28f60a
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

ci: remove the continuous fuzzing job (#3845)

Between Github Actions deprecting a command we use[0] and Fuzzit planning to deprecate their standalone service after being acquired by Gitlab[1][2], there are no reasons to keep this job. [0] https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ [1] https://about.gitlab.com/press/releases/2020-06-11-gitlab-acquires-peach-tech-and-fuzzit-to-expand-devsecops-offering.html [2] https://fuzzit.dev/2020/06/11/news-fuzzit-is-acquired-by-gitlab/

Mohammed Al Sahaf committed Nov 4, 2020 at 19:32 UTC 9e28f60aab31c9ae674bd55ba3975bc6b1c2514c
1 file changed -73
.github/workflows/fuzzing.yml deleted
-73
@@ -1,73 +0,0 @@
1 -name: Fuzzing
2 -
3 -on:
4 - # Daily midnight fuzzing
5 - schedule:
6 - - cron: '0 0 * * *'
7 -
8 -jobs:
9 - fuzzing:
10 - name: Fuzzing
11 -
12 - strategy:
13 - matrix:
14 - os: [ ubuntu-latest ]
15 - go: [ '1.14' ]
16 - runs-on: ${{ matrix.os }}
17 -
18 - steps:
19 - - name: Install Go
20 - uses: actions/setup-go@v2
21 - with:
22 - go-version: ${{ matrix.go }}
23 -
24 - - name: Checkout code
25 - uses: actions/checkout@v2
26 -
27 - - name: Download go-fuzz tools and the Fuzzit CLI, move Fuzzit CLI to GOBIN
28 - # If we decide we need to prevent this from running on forks, we can use this line:
29 - # if: github.repository == 'caddyserver/caddy'
30 - run: |
31 -
32 - go get -v github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
33 - wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.77/fuzzit_Linux_x86_64
34 - chmod a+x fuzzit
35 - mv fuzzit $(go env GOPATH)/bin
36 - echo "::add-path::$(go env GOPATH)/bin"
37 -
38 - - name: Generate fuzzers & submit them to Fuzzit
39 - continue-on-error: true
40 - env:
41 - FUZZIT_API_KEY: ${{ secrets.FUZZIT_API_KEY }}
42 - SYSTEM_PULLREQUEST_SOURCEBRANCH: ${{ github.ref }}
43 - BUILD_SOURCEVERSION: ${{ github.sha }}
44 - run: |
45 - # debug
46 - echo "PR Source Branch: $SYSTEM_PULLREQUEST_SOURCEBRANCH"
47 - echo "Source version: $BUILD_SOURCEVERSION"
48 -
49 - declare -A fuzzers_funcs=(\
50 - ["./caddyconfig/httpcaddyfile/addresses_fuzz.go"]="FuzzParseAddress" \
51 - ["./listeners_fuzz.go"]="FuzzParseNetworkAddress" \
52 - ["./replacer_fuzz.go"]="FuzzReplacer" \
53 - )
54 -
55 - declare -A fuzzers_targets=(\
56 - ["./caddyconfig/httpcaddyfile/addresses_fuzz.go"]="parse-address" \
57 - ["./listeners_fuzz.go"]="parse-network-address" \
58 - ["./replacer_fuzz.go"]="replacer" \
59 - )
60 -
61 - fuzz_type="fuzzing"
62 -
63 - for f in $(find . -name \*_fuzz.go); do
64 - FUZZER_DIRECTORY=$(dirname "$f")
65 -
66 - echo "go-fuzz-build func ${fuzzers_funcs[$f]} residing in $f"
67 -
68 - go-fuzz-build -func "${fuzzers_funcs[$f]}" -o "$FUZZER_DIRECTORY/${fuzzers_targets[$f]}.zip" "$FUZZER_DIRECTORY"
69 -
70 - fuzzit create job --engine go-fuzz caddyserver/"${fuzzers_targets[$f]}" "$FUZZER_DIRECTORY"/"${fuzzers_targets[$f]}.zip" --api-key "${FUZZIT_API_KEY}" --type "${fuzz_type}" --branch "${SYSTEM_PULLREQUEST_SOURCEBRANCH}" --revision "${BUILD_SOURCEVERSION}"
71 -
72 - echo "Completed $f"
73 - done