Skip to content

Commit

Permalink
fix: avoid docker pulling windows based hello-world image in windows …
Browse files Browse the repository at this point in the history
…runners
  • Loading branch information
adrobuta committed May 8, 2024
1 parent fc33367 commit ca11a93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file not shown.
8 changes: 4 additions & 4 deletions test/jest/acceptance/cli-args.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ describe('cli args', () => {
const sarifPath = 'snyk-direct-sarif-test-output.json';

const { code, stdout } = await runSnykCLI(
`container test hello-world --file=Dockerfile --sarif-file-output=${sarifPath} --json-file-output=${jsonPath}`,
`container test docker-archive:test/fixtures/container-projects/hello-world-linux.tar --file=Dockerfile --sarif-file-output=${sarifPath} --json-file-output=${jsonPath}`,
{
env,
cwd: project.path(),
Expand All @@ -398,7 +398,7 @@ describe('cli args', () => {
const sarifPath = 'snyk-direct-sarif-test-output.json';

const { code, stdout } = await runSnykCLI(
`container test hello-world --sarif --file=Dockerfile --sarif-file-output=${sarifPath}`,
`container test docker-archive:test/fixtures/container-projects/hello-world-linux.tar --sarif --file=Dockerfile --sarif-file-output=${sarifPath}`,
{
env,
cwd: project.path(),
Expand All @@ -417,7 +417,7 @@ describe('cli args', () => {
const sarifPath = 'snyk-direct-sarif-test-output.json';

const { code } = await runSnykCLI(
`container test hello-world --file=Dockerfile --sarif-file-output=${sarifPath}`,
`container test docker-archive:test/fixtures/container-projects/hello-world-linux.tar --file=Dockerfile --sarif-file-output=${sarifPath}`,
{
env,
cwd: project.path(),
Expand All @@ -435,7 +435,7 @@ describe('cli args', () => {
const sarifPath = 'snyk-direct-sarif-test-output.json';

const { code, stdout } = await runSnykCLI(
`container test hello-world --json --file=Dockerfile --sarif-file-output=${sarifPath}`,
`container test docker-archive:test/fixtures/container-projects/hello-world-linux.tar --json --file=Dockerfile --sarif-file-output=${sarifPath}`,
{
env,
cwd: project.path(),
Expand Down

0 comments on commit ca11a93

Please sign in to comment.