Răsfoiți Sursa

Adjust fuzzing to run on main branch only

Stéphane Raimbault 2 ani în urmă
părinte
comite
f6689ba621
2 a modificat fișierele cu 29 adăugiri și 26 ștergeri
  1. 0 26
      .github/workflows/cifuzz.yml
  2. 29 0
      .github/workflows/fuzzing.yml

+ 0 - 26
.github/workflows/cifuzz.yml

@@ -1,26 +0,0 @@
-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: 'libmodbus'
-        dry-run: false
-        language: c
-    - name: Run Fuzzers
-      uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
-      with:
-        oss-fuzz-project-name: 'libmodbus'
-        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

+ 29 - 0
.github/workflows/fuzzing.yml

@@ -0,0 +1,29 @@
+name: Fuzzing
+on:
+    push:
+        branches: ["master"]
+
+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: "libmodbus"
+                  dry-run: false
+                  language: c
+            - name: Run Fuzzers
+              uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
+              with:
+                  oss-fuzz-project-name: "libmodbus"
+                  fuzz-seconds: 300
+                  dry-run: false
+                  language: c
+            - name: Upload artifacts
+              uses: actions/upload-artifact@v3
+              if: failure() && steps.build.outcome == 'success'
+              with:
+                  name: artifacts
+                  path: ./out/artifacts