File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -310,8 +310,21 @@ func runCodeTestCommand(cmd *cobra.Command, args []string) error {
310
310
// ensure legacy behavior, where sarif and json can be used interchangeably
311
311
globalConfiguration .AddAlternativeKeys (output_workflow .OUTPUT_CONFIG_KEY_SARIF , []string {output_workflow .OUTPUT_CONFIG_KEY_JSON })
312
312
313
- // ensure legacy behavior, where sarif files with no findings are not written
314
- globalConfiguration .Set (output_workflow .OUTPUT_CONFIG_WRITE_EMPTY_FILE , false )
313
+ fileWriters := []output_workflow.FileWriter {
314
+ {
315
+ output_workflow .OUTPUT_CONFIG_KEY_SARIF_FILE ,
316
+ output_workflow .SARIF_MIME_TYPE ,
317
+ output_workflow .ApplicationSarifTemplates ,
318
+ true ,
319
+ },
320
+ {
321
+ output_workflow .OUTPUT_CONFIG_KEY_JSON_FILE ,
322
+ output_workflow .SARIF_MIME_TYPE ,
323
+ output_workflow .ApplicationSarifTemplates ,
324
+ false ,
325
+ },
326
+ }
327
+ globalConfiguration .Set (output_workflow .OUTPUT_CONFIG_KEY_FILE_WRITERS , fileWriters )
315
328
316
329
return runCommand (cmd , args )
317
330
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ require (
17
17
github.com/snyk/cli-extension-sbom v0.0.0-20250422133603-a5ae6fdf0934
18
18
github.com/snyk/container-cli v0.0.0-20250321132345-1e2e01681dd7
19
19
github.com/snyk/error-catalog-golang-public v0.0.0-20250520155934-078275889e2c
20
- github.com/snyk/go-application-framework v0.0.0-20250709155813-f556bec6f4f4
20
+ github.com/snyk/go-application-framework v0.0.0-20250710121809-f3fe05b7573d
21
21
github.com/snyk/go-httpauth v0.0.0-20240307114523-1f5ea3f55c65
22
22
github.com/snyk/snyk-iac-capture v0.6.5
23
23
github.com/snyk/snyk-ls v0.0.0-20250708142519-32d15f8b765a
Original file line number Diff line number Diff line change @@ -804,8 +804,8 @@ github.com/snyk/container-cli v0.0.0-20250321132345-1e2e01681dd7 h1:/2+2piwQtB9f
804
804
github.com/snyk/container-cli v0.0.0-20250321132345-1e2e01681dd7 /go.mod h1:38w+dcAQp9eG3P5t2eNS9eG0reut10AeJjLv5lJ5lpM =
805
805
github.com/snyk/error-catalog-golang-public v0.0.0-20250520155934-078275889e2c h1:rXUCGepwK38Xn00MKwfJRd5ecQ7ylvkudoMFBycIJUk =
806
806
github.com/snyk/error-catalog-golang-public v0.0.0-20250520155934-078275889e2c /go.mod h1:Ytttq7Pw4vOCu9NtRQaOeDU2dhBYUyNBe6kX4+nIIQ4 =
807
- github.com/snyk/go-application-framework v0.0.0-20250709155813-f556bec6f4f4 h1:ImrcCrDMYcIbT3isQC/4irSG52pt/7dpBo9fOSH8WX4 =
808
- github.com/snyk/go-application-framework v0.0.0-20250709155813-f556bec6f4f4 /go.mod h1:4DSu9PL2hypUjZhrT+zaMh3H5stAerMVfUs5XP1ST8U =
807
+ github.com/snyk/go-application-framework v0.0.0-20250710121809-f3fe05b7573d h1:aNZ699O+AzZMWDwp0tnw//a2DXOebZjBhYbd7DAqsWM =
808
+ github.com/snyk/go-application-framework v0.0.0-20250710121809-f3fe05b7573d /go.mod h1:4DSu9PL2hypUjZhrT+zaMh3H5stAerMVfUs5XP1ST8U =
809
809
github.com/snyk/go-httpauth v0.0.0-20240307114523-1f5ea3f55c65 h1:CEQuYv0Go6MEyRCD3YjLYM2u3Oxkx8GpCpFBd4rUTUk =
810
810
github.com/snyk/go-httpauth v0.0.0-20240307114523-1f5ea3f55c65 /go.mod h1:88KbbvGYlmLgee4OcQ19yr0bNpXpOr2kciOthaSzCAg =
811
811
github.com/snyk/policy-engine v0.33.2 h1:ZxD6/RQ4vqUAXa64V72SsGjZ8vmnBgZNGYQxMIqctYo =
You can’t perform that action at this time.
0 commit comments