From d456f90740287746d49d7a06b87ed7ebec1df599 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Tue, 12 Sep 2023 12:07:48 +0300 Subject: [PATCH] fix build script Signed-off-by: Michael Sverdlov --- xray/formats/simplejsonapi.go | 1 - xray/utils/resultstable.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/xray/formats/simplejsonapi.go b/xray/formats/simplejsonapi.go index be4b7cc1a..9bbbdea60 100644 --- a/xray/formats/simplejsonapi.go +++ b/xray/formats/simplejsonapi.go @@ -78,7 +78,6 @@ type SourceCodeRow struct { Severity string `json:"severity"` SeverityNumValue int `json:"-"` // For sorting Location - Type string `json:"type"` Finding string `json:"finding,omitempty"` ScannerDescription string `json:"scannerDescription,omitempty"` CodeFlow [][]Location `json:"codeFlow,omitempty"` diff --git a/xray/utils/resultstable.go b/xray/utils/resultstable.go index 226aa5d66..6a61fb1ad 100644 --- a/xray/utils/resultstable.go +++ b/xray/utils/resultstable.go @@ -318,7 +318,6 @@ func prepareSecrets(secrets []*sarif.Run, isTable bool) []formats.SourceCodeRow EndColumn: GetLocationEndColumn(location), Snippet: GetLocationSnippet(location), }, - Type: *secretResult.RuleID, }, ) } @@ -371,7 +370,6 @@ func prepareIacs(iacs []*sarif.Run, isTable bool) []formats.SourceCodeRow { EndColumn: GetLocationEndColumn(location), Snippet: GetLocationSnippet(location), }, - Type: *iacResult.RuleID, }, ) } @@ -425,7 +423,6 @@ func prepareSast(sasts []*sarif.Run, isTable bool) []formats.SourceCodeRow { EndColumn: GetLocationEndColumn(location), Snippet: GetLocationSnippet(location), }, - Type: *sastResult.RuleID, CodeFlow: codeFlowToLocationFlow(codeFlows, sastRun.Invocations, isTable), }, )