Skip to content

Commit d1c9b93

Browse files
Merge pull request #85 from okta/Integrate-Snyk-SAST-Scans
Add Snyk Scan step in CCI
2 parents ba7791d + 9dc54ca commit d1c9b93

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ jobs:
2222
root: .
2323
paths:
2424
- .
25+
snyk-scan:
26+
docker:
27+
- image: cimg/python:3.10
28+
steps:
29+
- attach_workspace: # Allows for sharing of build-workspace (containing downloaded dependencies) (optional)
30+
at: ~/project # This is the working directory for CCI containers, change if necessary
31+
- checkout # Might not need this if you have "persist_to_workspace" and "attach_workspace"
32+
- run: | # Might not need this if you have "persist_to_workspace" and "attach_workspace"
33+
pip install -r requirements.txt
34+
- platform-helpers-general/step-load-dependencies
35+
- platform-helpers-general/step-run-snyk-monitor:
36+
scan-all-projects: true
37+
skip-unresolved: false
38+
run-on-non-main: true
2539

2640
workflows:
2741
"Malware Scanner":
@@ -32,3 +46,10 @@ workflows:
3246
- static-analysis
3347
requires:
3448
- build
49+
- snyk-scan:
50+
name: execute-snyk
51+
filters:
52+
branches:
53+
only:
54+
- master
55+
- main

0 commit comments

Comments
 (0)