Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
62 lines (57 loc) · 2.4 KB
/
Copy pathaction.yml
File metadata and controls
62 lines (57 loc) · 2.4 KB
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
name: 'mobsfscan'
author: 'Ajin Abraham <ajin@opensecurity.in>'
description: 'mobsfscan is a SAST that can find insecure code patterns in your Android, iOS, and hybrid JavaScript/TypeScript source code.'
branding:
icon: 'code'
color: 'blue'
inputs:
args:
description: |
positional arguments:
path Path can be file(s) or directories with source code
optional arguments:
-h, --help show this help message and exit
--json set output format as JSON
--sarif set output format as SARIF 2.1.0
--sonarqube set output format as SonarQube generic issues (10.3+)
--gitlab-sast set output format as GitLab SAST report
--html set output format as HTML
--type {android,ios,javascript,auto}
optional: force android, ios, or javascript rules explicitly
-o OUTPUT, --output OUTPUT
output filename to save the result
-c CONFIG, --config CONFIG
location to .mobsf config file
-mp {default,billiard,thread}, --multiprocessing {default,billiard,thread}
optional: specify multiprocessing strategy
-w, --exit-warning non zero exit code on warning
--no-fail force zero exit code, takes precedence over --exit-warning
-v, --version show mobsfscan version
required: true
runs:
using: "composite"
steps:
- id: python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.13'
update-environment: false
- shell: bash
env:
MOBSFSCAN_PYTHON: ${{ steps.python.outputs.python-path }}
run: |
# A caller's PYTHONPATH can point into the scanned workspace.
unset PYTHONPATH
echo "::group::Installing mobsfscan dependencies"
cd "$GITHUB_ACTION_PATH"
"$MOBSFSCAN_PYTHON" -m pip install -r requirements.txt
echo "::endgroup::"
- shell: bash
env:
MOBSFSCAN_PYTHON: ${{ steps.python.outputs.python-path }}
run: |
unset PYTHONPATH
echo "Running mobsfscan..."
export PATH="$(dirname "$MOBSFSCAN_PYTHON"):$PATH"
"$MOBSFSCAN_PYTHON" "$GITHUB_ACTION_PATH/action_entrypoint.py" ${{ inputs.args }}
echo "Finished"