Skip to content

Commit

Permalink
Update Mayhem integration structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rnshah9 authored and ForAllSecure Mayhem Bot committed Nov 5, 2024
1 parent 2ce70e6 commit c4a0545
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/mayhem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,9 @@ env:

jobs:
build:
name: 'Build mayhem fuzzing container'
permissions: write-all
name: '${{ matrix.os }} shared=${{ matrix.shared }} ${{ matrix.build_type }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
shared: [false]
build_type: [Release]
include:
- os: ubuntu-latest
triplet: x64-linux

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -43,20 +34,31 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
file: ./Dockerfile.mayhem
context: .
file: mayhem/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Start analysis
outputs:
image: ${{ steps.meta.outputs.tags }}

mayhem:
needs: build
name: 'fuzz ${{ matrix.mayhemfile }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mayhemfile:
- mayhem/Mayhemfile

steps:
- uses: actions/checkout@v2

- name: Start analysis for ${{ matrix.mayhemfile }}
uses: ForAllSecure/mcode-action@v1
with:
mayhem-token: ${{ secrets.MAYHEM_TOKEN }}
args: --image ${{ steps.meta.outputs.tags }}
sarif-output: sarif

- name: Upload SARIF file(s)
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: sarif
args: --image ${{ needs.build.outputs.image }} --file ${{ matrix.mayhemfile }} --duration 300
sarif-output: sarif
File renamed without changes.
File renamed without changes.

0 comments on commit c4a0545

Please sign in to comment.