Skip to content

Commit

Permalink
chore: enables semgrep (#137)
Browse files Browse the repository at this point in the history
OKTA-636330 chore: enables semgrep
  • Loading branch information
jaredperreault-okta authored Aug 16, 2023
1 parent 8235ba0 commit 846418d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .bacon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,11 @@ test_suites:
timeout: '60'
script_name: publish
criteria: MERGE
queue_name: small
- name: semgrep
script_path: /root/okta/okta-vue/scripts
sort_order: '7'
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 846418d

Please sign in to comment.