Skip to content

Commit 31b0f70

Browse files
Enables semgrep on auth-js (#1442)
OKTA-624796 enables semgrep scans
1 parent b6728dd commit 31b0f70

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.bacon.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,12 @@ test_suites:
119119
# timeout: '60'
120120
# script_name: e2e-saucelabs
121121
# criteria: MERGE
122-
# queue_name: small
122+
# queue_name: small
123+
124+
- name: semgrep
125+
script_path: ../okta-auth-js/scripts
126+
sort_order: '14'
127+
timeout: '10'
128+
script_name: semgrep
129+
criteria: MERGE
130+
queue_name: small

scripts/semgrep.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -eo pipefail
4+
5+
cd ${OKTA_HOME}/${REPO}
6+
7+
if ! sast_scan;
8+
then
9+
exit ${FAILURE}
10+
fi
11+
12+
exit ${SUCCESS}

0 commit comments

Comments
 (0)