Skip to content

Commit 999ffd9

Browse files
authored
Merge pull request #315 from replicatedcom/divolgin/cve
Make and readme updates with info used to make this release
2 parents d1f507b + 4a9f825 commit 999ffd9

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
*.out
2323

2424
.DS_Store
25+
grype

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ make test
1818
make 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

2329
Releases are created on CircleCI when a tag is pushed.

0 commit comments

Comments
 (0)