cflite_batch.yml (1771B)
1 name: ClusterFuzzLite batch fuzzing 2 on: 3 schedule: 4 - cron: '0 0/6 * * *' # Every 6th hour. Change this to whatever is suitable. 5 workflow_dispatch: 6 permissions: read-all 7 jobs: 8 BatchFuzzing: 9 runs-on: ubuntu-latest 10 strategy: 11 fail-fast: false 12 matrix: 13 sanitizer: 14 - address 15 - undefined 16 - memory 17 steps: 18 - name: Add SSH key 19 env: 20 SSH_AUTH_SOCK: /tmp/ssh_agent.sock 21 run: | 22 mkdir -p /home/runner/.ssh 23 ssh-keyscan github.com >> /home/runner/.ssh/known_hosts 24 # STORAGE_SSH_KEY is the name of the repository secret 25 echo "${{ secrets.STORAGE_SSH_KEY }}" > /home/runner/.ssh/github_actions 26 chmod 600 /home/runner/.ssh/github_actions 27 ssh-agent -a $SSH_AUTH_SOCK > /dev/null 28 ssh-add /home/runner/.ssh/github_actions 29 - name: Build Fuzzers (${{ matrix.sanitizer }}) 30 id: build 31 uses: google/clusterfuzzlite/actions/build_fuzzers@v1 32 env: 33 SSH_AUTH_SOCK: /tmp/ssh_agent.sock 34 with: 35 language: c++ 36 sanitizer: ${{ matrix.sanitizer }} 37 storage-repo: https://MTRNord:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/MTRNord/spank_olm_fuzz_storage.git 38 - name: Run Fuzzers (${{ matrix.sanitizer }}) 39 id: run 40 uses: google/clusterfuzzlite/actions/run_fuzzers@v1 41 env: 42 SSH_AUTH_SOCK: /tmp/ssh_agent.sock 43 with: 44 github-token: ${{ secrets.GITHUB_TOKEN }} 45 fuzz-seconds: 3600 46 mode: 'batch' 47 sanitizer: ${{ matrix.sanitizer }} 48 output-sarif: true 49 storage-repo: https://MTRNord:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/MTRNord/spank_olm_fuzz_storage.git