forked from DOMjudge/domjudge
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.03 KB
/
mayhem-api.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Mayhem API analysis"
on:
schedule:
- cron: '5 21 * * *'
jobs:
mayhem:
name: Mayhem API analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
env:
DB_DATABASE: domjudge
DB_USER: user
DB_PASSWORD: password
steps:
- uses: actions/checkout@v2
- name: Install DOMjudge
run: .github/workflowscripts/baseinstall.sh
- name: Dump the OpenAPI
run: .github/workflowscripts/getapi.sh
- name: Mayhem for API
uses: ForAllSecure/mapi-action@193b709971cc377675e33284aecbf9229853e010
continue-on-error: true
with:
mapi-token: ${{ secrets.MAPI_TOKEN }}
api-url: http://localhost/domjudge
api-spec: http://localhost/domjudge/api/doc.json # swagger/openAPI doc hosted here
duration: 60
sarif-report: mapi.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: mapi.sarif