11version : 2.1
2+
23orbs :
3- anchore-engine : anchore/anchore-engine@1.2.0
4+ anchore : anchore/anchore-engine@1.2.0
5+
46jobs :
5- build :
7+
8+ " fdk " :
69 docker :
710 - image : circleci/node
811 working_directory : ~/go/src/github.com/fnproject/fdk-node
1518 node --version
1619 npm --version
1720 - checkout
18- - run :
19- command : |
20- sudo npm install -g snyk
2121 - run :
2222 name : " test"
2323 command : |
@@ -38,12 +38,11 @@ jobs:
3838 ./build-images.sh 11
3939 ./release_images.sh
4040 fi
41- local_image_scan :
41+ " node8_security_check " :
4242 executor : anchore/anchore_engine
4343 working_directory : ~/go/src/github.com/fnproject/fdk-node
4444 steps :
4545 - checkout
46-
4746 - run :
4847 name : Node.JS 8 build
4948 command : |
5554 - anchore/analyze_local_image :
5655 image_name : fnproject/node:8
5756 timeout : ' 500'
58- analysis_fail : True
57+ policy_failure : true
58+ - anchore/parse_reports
5959
60+ " node10_security_check " :
61+ executor : anchore/anchore_engine
62+ working_directory : ~/go/src/github.com/fnproject/fdk-node
63+ steps :
64+ - checkout
6065 - run :
6166 name : Node.JS 10 build
6267 command : |
6873 - anchore/analyze_local_image :
6974 image_name : fnproject/node:10
7075 timeout : ' 500'
71- analysis_fail : True
76+ policy_failure : true
77+ - anchore/parse_reports
7278
79+ " node11_security_check " :
80+ executor : anchore/anchore_engine
81+ working_directory : ~/go/src/github.com/fnproject/fdk-node
82+ steps :
83+ - checkout
7384 - run :
7485 name : Node.JS 11 build
7586 command : |
8192 - anchore/analyze_local_image :
8293 image_name : fnproject/node:11
8394 timeout : ' 500'
84- analysis_fail : True
95+ policy_failure : true
96+ - anchore/parse_reports
97+
98+ workflows :
99+ version : 2
100+ build :
101+ jobs :
102+ - " fdk"
103+ - " node8_security_check"
104+ - " node10_security_check"
105+ - " node11_security_check"
0 commit comments