Skip to content

Commit

Permalink
chore: enables scan tooling in CI (#158)
Browse files Browse the repository at this point in the history
OKTA-636330 chore: enables scan tooling
  • Loading branch information
jaredperreault-okta authored Aug 29, 2023
1 parent 1649a9e commit 6718b77
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .bacon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@ test_suites:
sort_order: '1'
timeout: '10'
script_name: e2e
criteria: MERGE
criteria: OPTIONAL
queue_name: small
- name: e2e-oie
script_path: /root/okta/samples-js-vue/scripts
sort_order: '1'
timeout: '10'
script_name: e2e-oie
criteria: OPTIONAL
queue_name: small
- name: semgrep
script_path: /root/okta/samples-js-vue/scripts
sort_order: '3'
timeout: '10'
script_name: semgrep
criteria: MERGE
queue_name: small
- name: synk
script_path: /root/okta/samples-js-vue/scripts
script_name: synk
sort_order: '3'
timeout: '200'
criteria: MAINLINE
queue_name: small
trigger: AUTO
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}
9 changes: 9 additions & 0 deletions scripts/synk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -x

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

cd ${OKTA_HOME}/${REPO}

create_log_group "Synk Scan"
dependency_scan
finish_log_group $?

0 comments on commit 6718b77

Please sign in to comment.