forked from maThmatics/salus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint.sh
executable file
·32 lines (28 loc) · 991 Bytes
/
entrypoint.sh
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
#!/bin/sh -l
export PATH="$PATH:/root/.local/bin"
export PYTHONPATH="$PYTHONPATH:/root/.local/lib/python3.7/site-packages"
which -a bandit
which -a semgrep
semgrep --version
echo "
config_version: 1
active_scanners: $INPUT_ACTIVE_SCANNERS
enforced_scanners: $INPUT_ENFORCED_SCANNERS
custom_info:
sha1: $GITHUB_SHA
reponame: $GITHUB_REPOSITORY
ref: $GITHUB_REF
ci_username: $GITHUB_ACTOR
github_action: $GITHUB_ACTION
github_workflow: $GITHUB_WORKFLOW
github_event_name: $GITHUB_EVENT_NAME
github_event_path: $GITHUB_EVENT_PATH
github_workspace: $GITHUB_WORKSPACE
github_head_ref: $GITHUB_HEAD_REF
github_base_ref: $GITHUB_BASE_REF
github_home: $HOME
reports:
- uri: $INPUT_REPORT_URI
format: $INPUT_REPORT_FORMAT
verbose: $INPUT_REPORT_VERBOSITY" | tee $GITHUB_WORKSPACE/../salus-configuration.yaml
cd /home && BUNDLE_GEMFILE=/home/Gemfile bundle exec /home/bin/salus scan --repo_path "$GITHUB_WORKSPACE/$BASE_DIRECTORY" --config "$SALUS_CONFIGURATION"