From 85dfd6e08a37daf3eb4217dd67829528247ed89e Mon Sep 17 00:00:00 2001 From: Alexandru Geana Date: Thu, 30 Nov 2023 16:26:18 +0100 Subject: [PATCH] Fuzzing: run harness as part of workflow --- .github/workflows/build_and_fuzz.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_fuzz.yml b/.github/workflows/build_and_fuzz.yml index d8e44aa8..adec08c9 100644 --- a/.github/workflows/build_and_fuzz.yml +++ b/.github/workflows/build_and_fuzz.yml @@ -1,6 +1,9 @@ name: Build and Fuzz -on: [push, pull_request] +on: + schedule: + # Run this every wednesday at 3:50. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule + - cron: '50 3 * * 3' jobs: fuzz_msan: @@ -27,6 +30,10 @@ jobs: -B build-msan cmake --build build-msan + - name: run harness for fuzz_get_attribute_value + working-directory: yubihsm-shell + run: ./build-msan/pkcs11/fuzz_get_attribute_value -max_total_time=1800 + fuzz_asan: name: fuzz with AddressSanitizer runs-on: ubuntu-latest @@ -62,3 +69,7 @@ jobs: -DENABLE_STATIC=ON \ -B build-asan cmake --build build-asan + + - name: run harness for fuzz_get_attribute_value + working-directory: yubihsm-shell + run: ./build-asan/pkcs11/fuzz_get_attribute_value -max_total_time=1800