File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,15 +30,10 @@ jobs:
3030 steps :
3131 - checkout
3232 - setup_remote_docker
33- - run :
34- name : Build image
35- command : |
36- docker build --pull -t replicated/support-bundle:base -f deploy/Dockerfile-base deploy/
3733 - run :
3834 name : Run local image vulnerability scan
3935 command : |
40- curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b .
41- ./grype --fail-on=medium --only-fixed --config=.circleci/.anchore/grype.yaml -vv replicated/support-bundle:base
36+ make scan-base
4237
4338 e2e :
4439 # Use machine for volume binding support in Docker
Original file line number Diff line number Diff line change 2222* .out
2323
2424.DS_Store
25+ grype
Original file line number Diff line number Diff line change @@ -221,3 +221,12 @@ support-bundle-generate: goreleaser
221221 @mkdir -p .state
222222 docker build --pull -t replicated/support-bundle:base -f deploy/Dockerfile-base deploy/
223223 @touch .state/base
224+
225+ grype :
226+ curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b .
227+
228+ build-base :
229+ docker build --pull -t replicated/support-bundle:base -f deploy/Dockerfile-base deploy/
230+
231+ scan-base : build-base grype
232+ ./grype --fail-on=medium --only-fixed --config=.circleci/.anchore/grype.yaml -vv replicated/support-bundle:base
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ make test
1818make e2e-supportbundle-core e2e-supportbundle-docker
1919```
2020
21+ ## Scanning image prior to release
22+
23+ ```
24+ make scan-base
25+ ```
26+
2127## Releases
2228
2329Releases are created on CircleCI when a tag is pushed.
You can’t perform that action at this time.
0 commit comments