From e6db12848f2c459fe92c05b29b0fb19f9b368c32 Mon Sep 17 00:00:00 2001 From: Ice3man543 Date: Sat, 5 Jun 2021 23:42:37 +0530 Subject: [PATCH] Temporary fix for sarif github location issue --- v2/pkg/reporting/exporters/sarif/sarif.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/pkg/reporting/exporters/sarif/sarif.go b/v2/pkg/reporting/exporters/sarif/sarif.go index 5ac5c37b..4c222732 100644 --- a/v2/pkg/reporting/exporters/sarif/sarif.go +++ b/v2/pkg/reporting/exporters/sarif/sarif.go @@ -87,7 +87,7 @@ func (i *Exporter) Export(event *output.ResultEvent) error { WithLevel(sarifSeverity). WithLocation(sarif.NewLocation().WithMessage(sarif.NewMessage().WithText(event.Host)).WithPhysicalLocation( sarif.NewPhysicalLocation(). - WithArtifactLocation(sarif.NewArtifactLocation().WithUri(os.Getenv("github.action_path"))). + WithArtifactLocation(sarif.NewArtifactLocation().WithUri("README.md")). WithRegion(sarif.NewRegion().WithStartColumn(1).WithStartLine(1).WithEndLine(1).WithEndColumn(1)), )) return nil