Skip to content

Commit

Permalink
CI for continuous fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
nlgripto authored Dec 13, 2024
1 parent 75d5bc8 commit 9ee1959
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,30 @@ jobs:
run: RUSTFLAGS="-D warnings" cargo bench -- --nocapture
if: matrix.rust == 'nightly' && matrix.os != 'windows-latest'
shell: bash
- name: (Continuous Fuzzing) Get commit hash
id: get-commit-hash
shell: bash
run: echo "commit_hash=$(git rev-parse HEAD 2>/dev/null)" >> $GITHUB_OUTPUT
if: matrix.rust == 'nightly' && matrix.os == 'ubuntu-latest'
- name: (Continuous Fuzzing) Upload fuzzers as GitHub Artifact
uses: actions/upload-artifact@v4
id: zip-upload-sbpf-fuzzers
with:
path: ./fuzz/target/x86_64-unknown-linux-gnu/release/
name: "artifact-rbpf-${{ matrix.os }}-${{github.run_id}}"
retention-days: 2
if: matrix.rust == 'nightly' && matrix.os == 'ubuntu-latest'
- name: (Continuous Fuzzing) Ping Fuzz Infrastructure
run: |
curl -L \
-X POST \
https://api.github.com/repos/asymmetric-research/FuzzCorp-bundler/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
--data '{"event_type": "rbpf_main", "client_payload":{"artifact_id": "${{steps.zip-upload-sbpf-fuzzers.outputs.artifact-id }}", "bundle_type": "${{ matrix.os }}", "hash":"${{ steps.get-commit-hash.outputs.commit_hash }}", "run_id":"${{ github.run_id}}", "name":"artifact-rbpf-${{ matrix.os }}-${{github.run_id}}"}}'
if: matrix.rust == 'nightly' && matrix.os == 'ubuntu-latest'


coverage:
name: Coverage
Expand Down

0 comments on commit 9ee1959

Please sign in to comment.