Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: exclude base image vulns filtering all vulns
A previous change moved the filtering out of base image vulns (based on the existance of `dockerfileInstruction`) to be before `dockerfileInstruction` is assigned to the vulns, so all vulns were filtered out in case we used the `exclude-base-image-vulns` option. This fix moves the filtering back to where it was before, and recalculates the value of `ok`, to account for the reason it was moved in the first place.
- Loading branch information
Yaron Schwimmer
committed
Jan 12, 2022
1 parent
ed99593
commit 96ba2b0
Showing
5 changed files
with
75 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM alpine:3.10.3 | ||
RUN apk add --no-cache --virtual .build-deps openssl | ||
COPY package.json /app/package.json | ||
COPY package-lock.json /app/package-lock.json | ||
WORKDIR /app | ||
|
Binary file not shown.
101 changes: 49 additions & 52 deletions
101
test/jest/acceptance/snyk-test/app-vuln-container-project.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters