Skip to content

Commit 7ffe66f

Browse files
OKTA-729786: add snyk scan (#413)
1 parent 882791c commit 7ffe66f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.circleci/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: 2.1
33

44
orbs:
55
python: circleci/python@2.1.1
6+
platform-helpers-general: okta/general-platform-helpers@1.8
67

78
jobs:
89
build_and_test:
@@ -20,7 +21,23 @@ jobs:
2021
- run:
2122
name: Run Integration Tests
2223
command: pytest tests/integration
24+
snyk-scan:
25+
docker:
26+
- image: cimg/python:3.10
27+
steps:
28+
- attach_workspace: # Allows for sharing of build-workspace (containing downloaded dependencies) (optional)
29+
at: ~/project # This is the working directory for CCI containers, change if necessary
30+
- checkout # Might not need this if you have "persist_to_workspace" and "attach_workspace"
31+
- run: | # Might not need this if you have "persist_to_workspace" and "attach_workspace"
32+
pip install -r requirements.txt
33+
- platform-helpers-general/step-run-snyk-monitor:
34+
scan-all-projects: true
35+
skip-unresolved: false
2336
workflows:
2437
"Circle CI Tests":
2538
jobs:
2639
- build_and_test
40+
- snyk-scan:
41+
context:
42+
- static-analysis
43+
name: execute-snyk

0 commit comments

Comments
 (0)