Skip to content

Commit 03e6493

Browse files
PeterSchaferdotkas
authored andcommitted
fix: Increase tolerance for invalid input directories
1 parent ffe72d0 commit 03e6493

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

cliv2/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/snyk/cli-extension-sbom v0.0.0-20250801142135-ae472dafa4cd
1919
github.com/snyk/container-cli v0.0.0-20250321132345-1e2e01681dd7
2020
github.com/snyk/error-catalog-golang-public v0.0.0-20250812140843-a01d75260003
21-
github.com/snyk/go-application-framework v0.0.0-20250819102036-66d2080267ab
21+
github.com/snyk/go-application-framework v0.0.0-20250821104616-b04124f67df0
2222
github.com/snyk/go-httpauth v0.0.0-20240307114523-1f5ea3f55c65
2323
github.com/snyk/snyk-iac-capture v0.6.5
2424
github.com/snyk/snyk-ls v0.0.0-20250820115356-1a23ca41eefb

cliv2/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,8 +1301,8 @@ github.com/snyk/container-cli v0.0.0-20250321132345-1e2e01681dd7 h1:/2+2piwQtB9f
13011301
github.com/snyk/container-cli v0.0.0-20250321132345-1e2e01681dd7/go.mod h1:38w+dcAQp9eG3P5t2eNS9eG0reut10AeJjLv5lJ5lpM=
13021302
github.com/snyk/error-catalog-golang-public v0.0.0-20250812140843-a01d75260003 h1:qeXih9sVe/WvhccE3MfEgglnSVKN1xTQBcsA/N96Kzo=
13031303
github.com/snyk/error-catalog-golang-public v0.0.0-20250812140843-a01d75260003/go.mod h1:Ytttq7Pw4vOCu9NtRQaOeDU2dhBYUyNBe6kX4+nIIQ4=
1304-
github.com/snyk/go-application-framework v0.0.0-20250819102036-66d2080267ab h1:LA3wLE4eohwNap37h2MuyjhpR/BTzGHgemDQIzKhHQk=
1305-
github.com/snyk/go-application-framework v0.0.0-20250819102036-66d2080267ab/go.mod h1:BcHDVsw0EkwisckVp8qVItO1eqI98fMrb61GCGr7ERM=
1304+
github.com/snyk/go-application-framework v0.0.0-20250821104616-b04124f67df0 h1:lO/Hx6yViOdw5L8w3utqebCSrRenI6c8c0azYui2+kg=
1305+
github.com/snyk/go-application-framework v0.0.0-20250821104616-b04124f67df0/go.mod h1:BcHDVsw0EkwisckVp8qVItO1eqI98fMrb61GCGr7ERM=
13061306
github.com/snyk/go-httpauth v0.0.0-20240307114523-1f5ea3f55c65 h1:CEQuYv0Go6MEyRCD3YjLYM2u3Oxkx8GpCpFBd4rUTUk=
13071307
github.com/snyk/go-httpauth v0.0.0-20240307114523-1f5ea3f55c65/go.mod h1:88KbbvGYlmLgee4OcQ19yr0bNpXpOr2kciOthaSzCAg=
13081308
github.com/snyk/policy-engine v0.33.2 h1:ZxD6/RQ4vqUAXa64V72SsGjZ8vmnBgZNGYQxMIqctYo=

test/jest/acceptance/snyk-code/snyk-code-user-journey.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,10 @@ describe('snyk code test', () => {
279279

280280
it('works with --json', async () => {
281281
const path = await ensureUniqueBundleIsUsed(projectWithCodeIssues);
282-
const { stdout, stderr, code } = await runSnykCLI(
283-
`code test ${path} --json`,
282+
const { stdout, stderr, code } = await runSnykCLIWithArray(
283+
['code', 'test', '--json', ''], // the empty string is intentional testing an unexpected empty string as input directory
284284
{
285+
cwd: path,
285286
env: {
286287
...process.env,
287288
...integrationEnv,

0 commit comments

Comments
 (0)