aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Korczynski <david@adalogics.com>2022-11-20 14:23:30 -0800
committerGravatar Alex Chernyakhovsky <achernya@mit.edu>2022-11-20 16:06:53 -1000
commitc516fb42561e5e537266e1d350a76d5105f93aff (patch)
treeecd2f35d6391819a511c1b24811f953c9c1755cb
parentaafe2f9f020102ddb4c431885bd096cbd5e92f0d (diff)
Add github action for CIFuzz integration
Signed-off-by: David Korczynski <david@adalogics.com>
-rw-r--r--.github/workflows/cifuzz.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml
new file mode 100644
index 0000000..4cbf484
--- /dev/null
+++ b/.github/workflows/cifuzz.yml
@@ -0,0 +1,26 @@
+name: CIFuzz
+on: [pull_request]
+jobs:
+ Fuzzing:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Build Fuzzers
+ id: build
+ uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
+ with:
+ oss-fuzz-project-name: 'mosh'
+ dry-run: false
+ language: c++
+ - name: Run Fuzzers
+ uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+ with:
+ oss-fuzz-project-name: 'mosh'
+ fuzz-seconds: 300
+ dry-run: false
+ language: c++
+ - name: Upload Crash
+ uses: actions/upload-artifact@v3
+ if: failure() && steps.build.outcome == 'success'
+ with:
+ name: artifacts
+ path: ./out/artifacts