Skip to content

Commit

Permalink
chore: enables semgrep (#148)
Browse files Browse the repository at this point in the history
OKTA-636330 chore: enables semgrep
  • Loading branch information
jaredperreault-okta authored Aug 29, 2023
1 parent cb68b38 commit ce2d520
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .bacon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ test_suites:
sort_order: '1'
timeout: '10'
script_name: e2e
criteria: MERGE
criteria: OPTIONAL
queue_name: small
- name: semgrep
script_path: /root/okta/samples-nodejs-express-4/scripts
sort_order: '3'
timeout: '10'
script_name: semgrep
criteria: MERGE
queue_name: small
12 changes: 12 additions & 0 deletions scripts/semgrep.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -eo pipefail

cd ${OKTA_HOME}/${REPO}

if ! sast_scan;
then
exit ${FAILURE}
fi

exit ${SUCCESS}

0 comments on commit ce2d520

Please sign in to comment.