File tree Expand file tree Collapse file tree 2 files changed +0
-328
lines changed Expand file tree Collapse file tree 2 files changed +0
-328
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -110,11 +110,3 @@ scan-vulnerability:
110
110
mkdir -p ./tmp/clair/usabillabv
111
111
cat ./tmp/build-* .tags | xargs -I % sh -c ' clair-scanner --ip 172.17.0.1 -r "./tmp/clair/%.json" -l ./tmp/clair/clair.log % || echo "% is vulnerable"'
112
112
docker-compose -f test/security/docker-compose.yml -p clair-ci down
113
-
114
- ci-scan-vulnerability :
115
- docker-compose -f test/security/docker-compose.yml -p clair-ci up -d
116
- RETRIES=0 && while ! wget -T 10 -q -O /dev/null http://localhost:6060/v1/namespaces ; do sleep 1 ; echo -n " ." ; if [ $$ {RETRIES} -eq 10 ] ; then echo " Timeout, aborting." ; exit 1 ; fi ; RETRIES=$$ (( $$ {RETRIES}+ 1 )) ; done
117
- mkdir -p ./tmp/clair/usabillabv
118
- cat ./tmp/build-* .tags | xargs -I % sh -c ' clair-scanner --ip 172.17.0.1 -r "./tmp/clair/%.json" -l ./tmp/clair/clair.log %' ; \
119
- XARGS_EXIT=$$? ; \
120
- if [ $$ {XARGS_EXIT} -eq 123 ]; then find ./tmp/clair/usabillabv -type f | sed ' s/^/-Fjson=@/' | xargs -d' \n' curl -X POST ${WALLE_REPORT_URL} -F channel=team_oz -F buildUrl=https://circleci.com/gh/usabilla/php-docker-template/${CIRCLE_BUILD_NUM} # artifacts/containers/0; else exit $${XARGS_EXIT}; fi
You can’t perform that action at this time.
0 commit comments