Lines Matching +full:fuzz +full:- +full:seconds
1 ---
6 permalink: /getting-started/continuous-integration/
7 ---
11 OSS-Fuzz offers **CIFuzz**, a GitHub action/CI job that runs your fuzz targets
26 * The crash does not occur on older OSS-Fuzz builds. (If the crash does occur
30 If your project supports [OSS-Fuzz's code coverage]({{ site.baseurl }}/advanced-topics/code-coverag…
35 CIFuzz uses 30 day old/public regressions and corpora from OSS-Fuzz. This makes
40 1. Your project must be integrated with OSS-Fuzz.
42 1. Your repository needs to be cloned with `git` in oss-fuzz Dockerfile (do not use `go get` or oth…
49 1. Copy the example [`main.yml`](https://github.com/google/oss-fuzz/blob/master/infra/cifuzz/exampl…
50 file over from the OSS-Fuzz repository to the `workflows` directory.
51 …`oss-fuzz-project-name` value in `main.yml` from `example` to the name of your OSS-Fuzz project. I…
52 …ry in the [`projects`](https://github.com/google/oss-fuzz/tree/master/projects) directory of OSS-F…
53 …e of `fuzz-seconds`. The longest time that the project maintainers are acceptable with should be u…
61 |___ other-files
71 runs-on: ubuntu-latest
73 - name: Build Fuzzers
75 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
77 oss-fuzz-project-name: 'example'
79 - name: Run Fuzzers
80 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
82 oss-fuzz-project-name: 'example'
84 fuzz-seconds: 600
85 - name: Upload Crash
86 uses: actions/upload-artifact@v1
100 [this explanation]({{ site.baseurl }}//getting-started/new-project-guide/#language)
103 `fuzz-time`: Determines how long CIFuzz spends fuzzing your project in seconds.
104 The default is 600 seconds. The GitHub Actions max run time is 21600 seconds (6
108 `dry-run`: Determines if CIFuzz surfaces errors. The default value is `false`. When set to `true`,
111 make sure to set the dry-run parameters in both the `Build Fuzzers` and `Run Fuzzers` action step.
113 `allowed-broken-targets-percentage`: Can be set if you want to set a stricter
114 limit for broken fuzz targets than OSS-Fuzz's check_build. Most users should
118 `sanitizer`: Determines a sanitizer to build and run fuzz targets with. The choices are `'address'`,
121 a [matrix](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_…
130 runs-on: ubuntu-latest
132 fail-fast: false
136 - name: Build Fuzzers (${{ matrix.sanitizer }})
138 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
140 oss-fuzz-project-name: 'example'
143 - name: Run Fuzzers (${{ matrix.sanitizer }})
144 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
146 oss-fuzz-project-name: 'example'
148 fuzz-seconds: 600
150 - name: Upload Crash
151 uses: actions/upload-artifact@v1
154 name: ${{ matrix.sanitizer }}-artifacts
162 instructions [here](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions…
171 - master
172 - 'releases/**'
174 - '**.c'
175 - '**.cc'
176 - '**.cpp'
177 - '**.cxx'
178 - '**.h'
181 runs-on: ubuntu-latest
183 - name: Build Fuzzers
185 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
187 oss-fuzz-project-name: 'example'
189 - name: Run Fuzzers
190 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
192 oss-fuzz-project-name: 'example'
194 fuzz-seconds: 600
195 - name: Upload Crash
196 uses: actions/upload-artifact@v1
203 You can checkout CIFuzz configs for OSS-Fuzz projects. Example -
205 [curl](https://github.com/curl/curl/blob/master/.github/workflows/fuzz.yml).
217 from each of the fuzz targets.
235 Create an issue in [OSS-Fuzz](https://github.com/google/oss-fuzz/issues/new) if you have questions …