Merge pull request #1887 from Mujib-Ahasan/fix-print-sarif

fix: --format sarif logs as expected
This commit is contained in:
Matthias Bertschy
2025-11-05 18:17:31 +01:00
committed by GitHub

View File

@@ -199,7 +199,7 @@ func (sp *SARIFPrinter) printConfigurationScan(ctx context.Context, opaSessionOb
filepath := resourceSource.RelativePath
// Github Code Scanning considers results not associated to a file path meaningless and invalid when uploading
if filepath == "" || basePath == "" {
if filepath == "" && basePath == "" {
continue
}