Skip to content

Commit

Permalink
feat: Improve output for dockerfile instructions
Browse files Browse the repository at this point in the history
This commit allows for use of the installCommand extracted
from a RUN instruction in newer versions of the SDP.

[CAP-280]
  • Loading branch information
pecodez committed Nov 19, 2021
1 parent b84c068 commit 0aaaf72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/snyk-test/run-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ async function parseRes(
const dockerfilePackage = dockerfilePackages[vuln.name.split('/')[0]];
if (dockerfilePackage) {
(vuln as DockerIssue).dockerfileInstruction =
dockerfilePackage.instruction;
dockerfilePackage.installCommand ?? dockerfilePackage.instruction;
}
(vuln as DockerIssue).dockerBaseImage = res.docker!.baseImage;
return vuln;
Expand Down

0 comments on commit 0aaaf72

Please sign in to comment.