Skip to content

Commit 9f550c9

Browse files
authored
Add mobsf action
mobsf scanning action
1 parent 5a1355d commit 9f550c9

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/mobsf.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: MobSF
7+
8+
on:
9+
push:
10+
branches: [ "master" ]
11+
pull_request:
12+
branches: [ "master" ]
13+
schedule:
14+
- cron: '24 16 * * 3'
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
mobile-security:
21+
permissions:
22+
contents: read # for actions/checkout to fetch code
23+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
24+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- uses: actions/checkout@v3
29+
30+
- name: Setup python
31+
uses: actions/setup-python@v3
32+
with:
33+
python-version: 3.8
34+
35+
- name: Run mobsfscan
36+
uses: MobSF/mobsfscan@a60d10a83af68e23e0b30611c6515da604f06f65
37+
with:
38+
args: . --sarif --output results.sarif || true
39+
40+
- name: Upload mobsfscan report
41+
uses: github/codeql-action/upload-sarif@v2
42+
with:
43+
sarif_file: results.sarif

0 commit comments

Comments
 (0)