Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@ jobs:
steps:
- checkout
- setup_remote_docker
- run:
name: Build image
command: |
docker build --pull -t replicated/support-bundle:base -f deploy/Dockerfile-base deploy/
- run:
name: Run local image vulnerability scan
command: |
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b .
./grype --fail-on=medium --only-fixed --config=.circleci/.anchore/grype.yaml -vv replicated/support-bundle:base
make scan-base

e2e:
# Use machine for volume binding support in Docker
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
*.out

.DS_Store
grype
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,12 @@ support-bundle-generate: goreleaser
@mkdir -p .state
docker build --pull -t replicated/support-bundle:base -f deploy/Dockerfile-base deploy/
@touch .state/base

grype:
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b .

build-base:
docker build --pull -t replicated/support-bundle:base -f deploy/Dockerfile-base deploy/

scan-base: build-base grype
./grype --fail-on=medium --only-fixed --config=.circleci/.anchore/grype.yaml -vv replicated/support-bundle:base
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ make test
make e2e-supportbundle-core e2e-supportbundle-docker
```

## Scanning image prior to release

```
make scan-base
```

## Releases

Releases are created on CircleCI when a tag is pushed.
Expand Down