This repository has been archived by the owner on Mar 15, 2023. It is now read-only.
forked from KyberNetwork/KyberSwap-iOS
-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (54 loc) · 1.71 KB
/
code-security.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Code Security
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
mobsfscan-job:
env:
GIT_STRATEGY: none
DD_TEST_NAME: "CI-Mobsfscan ${{ github.ref }} ${{ github.sha }}"
DD_TEST_TYPE_NAME: "Mobsfscan Scan"
DD_FILE_NAME: "mobsf-output.json"
DD_URL: https://dojo.krystal.team
DD_API_KEY: ${{ secrets.DD_API_KEY }}
DD_PRODUCT_NAME: "Krystal iOS"
DD_PRODUCT_TYPE_NAME: "Research and Development"
DD_ENGAGEMENT_NAME: "CI-Engagement"
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install the prerequisite
shell: bash
run: |
pip3 install --upgrade urllib3
pip3 install dd-import
- name: Run mobsfscan (json output)
uses: MobSF/mobsfscan@main
with:
args: . --json -o $DD_FILE_NAME || true
- name: Run mobsfscan (sarif output)
uses: MobSF/mobsfscan@main
with:
args: . --sarif --output results.sarif || true
- name: Upload mobsfscan report to codeql
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
- name: Upload to Dojo
shell: bash
run: |
python -m dd_import.dd_reimport_findings