Skip to content

Commit

Permalink
feat: adds semgrep static scan to the repo (#1930)
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshsomasundaram-okta authored Aug 10, 2023
1 parent 3427494 commit cacd661
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .bacon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test_suites:
- name: semgrep
script_path: /root/okta/odyssey/scripts
sort_order: "1"
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

source ${OKTA_HOME}/${REPO}/scripts/setup.sh

cd ${OKTA_HOME}/${REPO}

if ! sast_scan;
then
exit ${FAILURE}
fi

exit ${SUCCESS}

0 comments on commit cacd661

Please sign in to comment.