Skip to content

Commit

Permalink
Merge pull request #4552 from snyk/feat/support_oci
Browse files Browse the repository at this point in the history
feat: upgrade deps to support oci images
  • Loading branch information
kat1906 authored Apr 12, 2023
2 parents 6d434de + 5b42613 commit 3b256e5
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 36 deletions.
89 changes: 55 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@snyk/cloud-config-parser": "^1.14.5",
"@snyk/code-client": "^4.18.1",
"@snyk/dep-graph": "^1.27.1",
"@snyk/docker-registry-v2-client": "^2.7.3",
"@snyk/docker-registry-v2-client": "^2.9.0",
"@snyk/fix": "file:packages/snyk-fix",
"@snyk/gemfile": "1.2.0",
"@snyk/snyk-cocoapods-plugin": "2.5.3",
Expand Down Expand Up @@ -114,7 +114,7 @@
"semver": "^6.0.0",
"snyk-config": "4.0.0",
"snyk-cpp-plugin": "2.22.0",
"snyk-docker-plugin": "6.2.0",
"snyk-docker-plugin": "^6.3.0",
"snyk-go-plugin": "^1.19.5",
"snyk-gradle-plugin": "3.26.3",
"snyk-module": "3.1.0",
Expand Down
9 changes: 9 additions & 0 deletions test/jest/acceptance/snyk-container/container.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,13 @@ describe('snyk container', () => {
);
await expect(cli).toDisplay(`yum @ 4.9.0`, { timeout: 60 * 1000 });
});

it('finds dependencies in oci image (library/ubuntu)', async () => {
cli = await startSnykCLI(
'container test library/ubuntu@sha256:7a57c69fe1e9d5b97c5fe649849e79f2cfc3bf11d10bbd5218b4eb61716aebe6 --print-deps',
);
await expect(cli).toDisplay(`coreutils @ 8.32-4.1ubuntu1`, {
timeout: 60 * 1000,
});
});
});

0 comments on commit 3b256e5

Please sign in to comment.