Skip to content

Commit

Permalink
fix: use plugin fix and revert pkg ver lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Moshe Pontch committed Oct 16, 2019
1 parent adbeef9 commit 0681c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"proxy-from-env": "^1.0.0",
"semver": "^6.0.0",
"snyk-config": "^2.2.1",
"snyk-docker-plugin": "1.29.1",
"snyk-docker-plugin": "1.33.1",
"snyk-go-plugin": "1.11.1",
"snyk-gradle-plugin": "3.1.0",
"snyk-module": "1.9.1",
Expand Down
3 changes: 1 addition & 2 deletions src/lib/snyk-test/run-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ async function runTest(

if (res.docker && dockerfilePackages) {
res.vulnerabilities = res.vulnerabilities.map((vuln) => {
const pkg = vuln.name.split('/')[0] + '-' + vuln.version;
const dockerfilePackage = dockerfilePackages[pkg];
const dockerfilePackage = dockerfilePackages[vuln.name.split('/')[0]];
if (dockerfilePackage) {
(vuln as DockerIssue).dockerfileInstruction =
dockerfilePackage.instruction;
Expand Down

0 comments on commit 0681c70

Please sign in to comment.