File tree Expand file tree Collapse file tree 11 files changed +23
-16
lines changed
security-toolbox/policies/docker Expand file tree Collapse file tree 11 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -512,6 +512,7 @@ blocks:
512
512
- make check.ex.deps
513
513
- name : " \U0001F6E1 ️ Check docker"
514
514
commands :
515
+ - make build
515
516
- make check.docker
516
517
- name : " Dashboardhub: \U0001F9EA QA"
517
518
dependencies : ["Dashboardhub: \U0001F4CB Provision Test Image"]
@@ -3096,6 +3097,7 @@ blocks:
3096
3097
- make check.js.deps
3097
3098
- name : " \U0001F6E1 ️ Check docker"
3098
3099
commands :
3100
+ - make build
3099
3101
- make check.docker CHECK_DOCKER_OPTS='--skip-dirs node_modules'
3100
3102
# Velocity
3101
3103
- name : " Velocity: \U0001F4CB Provision Prod Image"
Original file line number Diff line number Diff line change @@ -557,6 +557,7 @@ blocks:
557
557
- make check.ex.deps
558
558
- name : " \U0001F6E1 ️ Check docker"
559
559
commands :
560
+ - make build
560
561
- make check.docker
561
562
- name : " Dashboardhub: \U0001F9EA QA"
562
563
dependencies : ["Dashboardhub: \U0001F4CB Provision Test Image"]
@@ -3398,6 +3399,7 @@ blocks:
3398
3399
- make check.js.deps
3399
3400
- name : " \U0001F6E1 ️ Check docker"
3400
3401
commands :
3402
+ - make build
3401
3403
- make check.docker CHECK_DOCKER_OPTS='--skip-dirs node_modules'
3402
3404
# Velocity
3403
3405
- name : " Velocity: \U0001F4CB Provision Prod Image"
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ ifeq ($(CI),)
126
126
-v $(ROOT_MAKEFILE_PATH)/security-toolbox:$(SECURITY_TOOLBOX_TMP_DIR) \
127
127
-v $(XDG_RUNTIME_DIR)/docker.sock:/var/run/docker.sock \
128
128
registry.semaphoreci.com/ruby:3 \
129
- bash -c '$(SECURITY_TOOLBOX_TMP_DIR)/docker -d --image $(IMAGE):$(IMAGE_TAG) $(CHECK_DOCKER_OPTS)'
129
+ bash -c '$(SECURITY_TOOLBOX_TMP_DIR)/docker -d --image $(IMAGE):$(IMAGE_TAG) -s CRITICAL $(CHECK_DOCKER_OPTS)'
130
130
else
131
131
# ruby version is set in prologue
132
132
$(ROOT_MAKEFILE_PATH)/security-toolbox/docker -d --image $(IMAGE):$(IMAGE_TAG) -s CRITICAL $(CHECK_DOCKER_OPTS)
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ RUN curl -sL https://github.com/google/protobuf/releases/download/v3.20.0/protoc
36
36
mv bin/protoc /usr/local/bin/protoc
37
37
38
38
WORKDIR /app
39
- RUN go install github.com/mgechev/revive@latest
40
- RUN go install gotest.tools/gotestsum@latest
39
+ RUN go install github.com/mgechev/revive@v1.7.0
40
+ RUN go install gotest.tools/gotestsum@v1.12.1
41
41
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
42
42
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
43
43
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ RUN curl -sL https://github.com/google/protobuf/releases/download/v28.0/protoc-2
29
29
mv bin/protoc /usr/local/bin/protoc
30
30
31
31
WORKDIR /app
32
- RUN go install github.com/mgechev/revive@latest
33
- RUN go install gotest.tools/gotestsum@latest
32
+ RUN go install github.com/mgechev/revive@v1.7.0
33
+ RUN go install gotest.tools/gotestsum@v1.12.1
34
34
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
35
35
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
36
36
RUN export PATH="$PATH:$(go env GOPATH)/bin"
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ RUN curl -sL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-
38
38
mv bin/protoc /usr/local/bin/protoc
39
39
40
40
WORKDIR /app
41
- RUN go install github.com/mgechev/revive@latest
42
- RUN go install gotest.tools/gotestsum@latest
41
+ RUN go install github.com/mgechev/revive@v1.7.0
42
+ RUN go install gotest.tools/gotestsum@v1.12.1
43
43
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
44
44
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
45
45
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ RUN curl -sL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-
30
30
mv bin/protoc /usr/local/bin/protoc
31
31
32
32
WORKDIR /app
33
- RUN go install github.com/mgechev/revive@latest
34
- RUN go install gotest.tools/gotestsum@latest
33
+ RUN go install github.com/mgechev/revive@v1.7.0
34
+ RUN go install gotest.tools/gotestsum@v1.12.1
35
35
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
36
36
37
37
CMD [ "/bin/bash" , "-c \" while sleep 1000; do :; done\" " ]
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ RUN curl -sL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-
30
30
mv bin/protoc /usr/local/bin/protoc
31
31
32
32
WORKDIR /app
33
- RUN go install github.com/mgechev/revive@latest
34
- RUN go install gotest.tools/gotestsum@latest
33
+ RUN go install github.com/mgechev/revive@v1.7.0
34
+ RUN go install gotest.tools/gotestsum@v1.12.1
35
35
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
36
36
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
37
37
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ RUN curl -sL https://github.com/google/protobuf/releases/download/v3.3.0/protoc-
31
31
mv bin/protoc /usr/local/bin/protoc
32
32
33
33
WORKDIR /app
34
- RUN go install github.com/mgechev/revive@latest
35
- RUN go install gotest.tools/gotestsum@latest
34
+ RUN go install github.com/mgechev/revive@v1.7.0
35
+ RUN go install gotest.tools/gotestsum@v1.12.1
36
36
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
37
37
RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
38
38
RUN rm -rf build && CGO_ENABLED=0 go build -o build/server main.go
Original file line number Diff line number Diff line change @@ -10,13 +10,16 @@ def initialize(args)
10
10
end
11
11
12
12
@skip_dirs = args [ :skip_dirs ] . to_s . split ( "," ) || [ ]
13
+ @severity = args [ :severity ] || "HIGH,CRITICAL"
13
14
end
14
15
15
16
def test
16
17
command = [
17
18
"trivy" ,
18
19
"config" ,
19
- "--exit-code 1"
20
+ "--severity #{ @severity } " ,
21
+ "--exit-code 1" ,
22
+ "--misconfig-scanners dockerfile"
20
23
]
21
24
22
25
@skip_files . each do |skip_file |
You can’t perform that action at this time.
0 commit comments