-
Notifications
You must be signed in to change notification settings - Fork 114
111 lines (105 loc) · 3.84 KB
/
cflite-batch.yml
File metadata and controls
111 lines (105 loc) · 3.84 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# SPDX-License-Identifier: Apache-2.0
# umoci: Umoci Modifies Open Containers' Images
# Copyright (C) 2016-2025 SUSE LLC
# Copyright (C) 2026 Aleksa Sarai <cyphar@cyphar.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: ClusterFuzzLite
on:
schedule:
- cron: '0 0/8 * * *' # once every 8 hours
permissions: read-all
jobs:
batch:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sanitizer:
- address
#- undefined # currently ubsan has build failures
- memory
steps:
- name: build fuzzers (${{ matrix.sanitizer }})
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
with:
language: go
github-token: ${{ secrets.GITHUB_TOKEN }}
sanitizer: ${{ matrix.sanitizer }}
storage-repo: https://${{ secrets.FUZZ_CORPUS_TOKEN }}@github.com/cyphar/umoci-fuzz-corpus.git
# FIXME: Workarounds for <https://github.com/google/clusterfuzzlite/pull/144>.
storage-repo-branch: main
storage-repo-branch-coverage: gh-pages
- name: run fuzzers (${{ matrix.sanitizer }})
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 3600
mode: 'batch'
sanitizer: ${{ matrix.sanitizer }}
output-sarif: true
storage-repo: https://${{ secrets.FUZZ_CORPUS_TOKEN }}@github.com/cyphar/umoci-fuzz-corpus.git
# TODO: The docs recommend doing this in a separate cronjob, but it runs
# quite quickly so I don't see a downside to doing this right after our
# 1-hour-long runs...
prune:
runs-on: ubuntu-latest
needs:
- batch
steps:
- name: build fuzzers
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
with:
language: go
storage-repo: https://${{ secrets.FUZZ_CORPUS_TOKEN }}@github.com/cyphar/umoci-fuzz-corpus.git
# FIXME: Workarounds for <https://github.com/google/clusterfuzzlite/pull/144>.
storage-repo-branch: main
storage-repo-branch-coverage: gh-pages
- name: run fuzzers (prune)
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 600
mode: 'prune'
output-sarif: true
storage-repo: https://${{ secrets.FUZZ_CORPUS_TOKEN }}@github.com/cyphar/umoci-fuzz-corpus.git
coverage:
runs-on: ubuntu-latest
needs:
- batch
steps:
- name: build fuzzers (coverage)
id: build
uses: google/clusterfuzzlite/actions/build_fuzzers@v1
with:
language: go
github-token: ${{ secrets.GITHUB_TOKEN }}
sanitizer: 'coverage'
storage-repo: https://${{ secrets.FUZZ_CORPUS_TOKEN }}@github.com/cyphar/umoci-fuzz-corpus.git
# FIXME: Workarounds for <https://github.com/google/clusterfuzzlite/pull/144>.
storage-repo-branch: main
storage-repo-branch-coverage: gh-pages
- name: run fuzzers (coverage)
id: run
uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 600
mode: 'coverage'
sanitizer: 'coverage'
output-sarif: true
storage-repo: https://${{ secrets.FUZZ_CORPUS_TOKEN }}@github.com/cyphar/umoci-fuzz-corpus.git