11version : 2.1
22orbs :
3- snyk : snyk/snyk@0.0.8
3+ snyk : snyk/snyk@1.1.1
44
55workflows : # creating a workflow to define the context - collection of different jobs
66 test-env-vars : # setting up a job to define the context which this project will use
@@ -15,23 +15,15 @@ jobs: # a collection of steps
1515 build-test-monitor-app : # runs not using Workflows must have a `build` job as entry point #directory where steps will run
1616 working_directory : ~/goof
1717 docker :
18- - image : circleci /node:4.8.2
18+ - image : ' cimg /node:lts '
1919 steps :
20- - checkout
21- - run :
22- name : echo "install and build npm project"
23- command : ' sudo npm install -q'
24- - run :
25- name : echo "build project"
26- command : ' npm run build'
27- # - run:
28- # name: echo "build Docker image"
29- # command: 'docker build -t my-new-container-goof-image .'
30- - snyk/scan :
20+ - checkout
21+ - run : npm ci
22+ - snyk/scan :
3123 fail-on-issues : false
3224 monitor-on-build : true
3325 token-variable : SNYKTOKEN
34- organization : panda-not-omar
26+ organization : ninja-snyker
3527 project : circleCi-goof
3628 severity-threshold : high
3729
@@ -52,11 +44,27 @@ jobs: # a collection of steps
5244 fail-on-issues : false
5345 monitor-on-build : true
5446 token-variable : SNYKTOKEN
55- organization : panda-not-omar
47+ organization : ninja-snyker
5648 project : circleCi-goof-container
5749 severity-threshold : low
5850 target-file : Dockerfile
5951 docker-image-name : my-new-container-circleci-goof-image
52+ docker :
53+ - image : ' snyk/snyk-cli:npm'
54+ parameters :
55+ args :
56+ default : ' '
57+ description : >
58+ See the Snyk CLI help page for information on additional arguments:
59+ https://support.snyk.io/hc/en-us/articles/360003812578-CLI-reference
60+ type : string
61+ resource_class : medium
62+ steps :
63+ - checkout
64+ - scan :
65+ additional-arguments : ' '
66+ command : iac test
67+ monitor-on-build : false
6068
6169# workflows:
6270 # node-tests:
0 commit comments