Skip to content

Commit cc31225

Browse files
committed
Upd: Fail on high severity issues, do not excluse base image issues
1 parent 453b3ac commit cc31225

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/master.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
- name: Run Snyk container test
153153
env:
154154
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
155-
run: snyk container test --exclude-base-image-vulns --file=./Dockerfile --docker boky/postfix:edge-alpine
155+
run: snyk container test --severity-threshold=high --file=./Dockerfile --docker boky/postfix:edge-alpine
156156

157157
Build_Ubuntu:
158158
runs-on: ubuntu-latest
@@ -233,7 +233,7 @@ jobs:
233233
- name: Run Snyk container test
234234
env:
235235
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
236-
run: snyk container test --exclude-base-image-vulns --file=./Dockerfile --docker boky/postfix:edge-ubuntu
236+
run: snyk container test --severity-threshold=high --file=./Dockerfile --docker boky/postfix:edge-ubuntu
237237

238238
Build_Debian:
239239
runs-on: ubuntu-latest
@@ -325,4 +325,4 @@ jobs:
325325
- name: Run Snyk container test
326326
env:
327327
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
328-
run: snyk container test --exclude-base-image-vulns --file=./Dockerfile --docker boky/postfix:edge-debian
328+
run: snyk container test --severity-threshold=high --file=./Dockerfile --docker boky/postfix:edge-debian

.github/workflows/tags.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
- name: Run Snyk container test
136136
env:
137137
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
138-
run: snyk container test --exclude-base-image-vulns --file=./Dockerfile --docker boky/postfix:${{ env.RELEASE_VERSION }}-alpine
138+
run: snyk container test --severity-threshold=high --file=./Dockerfile --docker boky/postfix:${{ env.RELEASE_VERSION }}-alpine
139139

140140
Build_Ubuntu:
141141
runs-on: ubuntu-latest
@@ -214,7 +214,7 @@ jobs:
214214
- name: Run Snyk container test
215215
env:
216216
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
217-
run: snyk container test --exclude-base-image-vulns --file=./Dockerfile --docker boky/postfix:${{ env.RELEASE_VERSION }}-ubuntu
217+
run: snyk container test --severity-threshold=high --file=./Dockerfile --docker boky/postfix:${{ env.RELEASE_VERSION }}-ubuntu
218218

219219

220220
Build_Debian:
@@ -297,7 +297,7 @@ jobs:
297297
- name: Run Snyk container test
298298
env:
299299
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
300-
run: snyk container test --exclude-base-image-vulns --file=./Dockerfile --docker boky/postfix:${{ env.RELEASE_VERSION }}-debian
300+
run: snyk container test --severity-threshold=high --file=./Dockerfile --docker boky/postfix:${{ env.RELEASE_VERSION }}-debian
301301

302302

303303
Release:

0 commit comments

Comments
 (0)