-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* AST-25406 Add gl-sast report * Add changes due to code review * Remove row
- Loading branch information
1 parent
cf64c05
commit 5933079
Showing
5 changed files
with
226 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
package wrappers | ||
|
||
const ( | ||
AnalyzerName = "CxOne" | ||
AnalyzerID = AnalyzerName + "-SAST" | ||
AnalyzerURL = "https://checkmarx.company.com/" | ||
VendorName = "Checkmarx" | ||
) | ||
|
||
type GlSastResultsCollection struct { | ||
Scan ScanGlReport `json:"scan"` | ||
Schema string `json:"schema"` | ||
Version string `json:"version"` | ||
Vulnerabilities []GlVulnerabilities `json:"vulnerabilities"` | ||
} | ||
type GlVulnerabilities struct { | ||
ID string `json:"id"` | ||
Category string `json:"category"` | ||
Name string `json:"name"` | ||
Message string `json:"message"` | ||
Description string `json:"description"` | ||
CVE string `json:"cve"` | ||
Severity string `json:"severity"` | ||
Confidence string `json:"confidence"` | ||
Solution string `json:"solution"` | ||
Scanner GlScanner `json:"scanner"` | ||
Identifiers []Identifier `json:"identifiers"` | ||
Links []string `json:"links"` | ||
Tracking Tracking `json:"tracking"` | ||
Flags Flag `json:"flags"` | ||
Location Location `json:"location"` | ||
} | ||
type Identifier struct { | ||
Type string `json:"type"` | ||
Name string `json:"name"` | ||
URL string `json:"url"` | ||
Value string `json:"value"` | ||
} | ||
type Flag struct { | ||
Type string `json:"type"` | ||
Origin string `json:"origin"` | ||
Description string `json:"description"` | ||
} | ||
type Location struct { | ||
File string `json:"file"` | ||
StartLine uint `json:"start_line"` | ||
EndLine uint `json:"end_line"` | ||
Class string `json:"class"` | ||
} | ||
|
||
type Tracking struct { | ||
Items Item `json:"items"` | ||
} | ||
type Item struct { | ||
Signatures Signature `json:"signatures"` | ||
File string `json:"file"` | ||
EndLine uint `json:"end_line"` | ||
StartLine uint `json:"start_line"` | ||
} | ||
type Signature struct { | ||
Algorithm string `json:"algorithm"` | ||
Value string `json:"value"` | ||
} | ||
type ScanGlReport struct { | ||
EndTime string `json:"end_time"` | ||
Analyzer Analyzer `json:"analyzer"` | ||
Scanner GlScanner `json:"scanner"` | ||
StartTime string `json:"start_time"` | ||
Status string `json:"status"` | ||
Type string `json:"type"` | ||
} | ||
|
||
type Analyzer struct { | ||
ID string `json:"id"` | ||
Name string `json:"name"` | ||
URL string `json:"url"` | ||
Vendor Vendor `json:"vendor"` | ||
Version string `json:"version"` | ||
} | ||
type GlScanner struct { | ||
ID string `json:"id"` | ||
Name string `json:"name"` | ||
} | ||
type Vendor struct { | ||
Name string `json:"name"` | ||
} | ||
type GLSastIdentifiers struct { | ||
Type string `json:"type"` | ||
Name string `json:"name"` | ||
URL string `json:"url"` | ||
Value string `json:"value"` | ||
} | ||
type GlSastTracking struct { | ||
Items []GlSastTrackingItems `json:"items"` | ||
} | ||
|
||
type GlSastTrackingItems struct { | ||
Signatures GlSastTrackingItemsSignatures `json:"signatures"` | ||
File string `json:"file"` | ||
EndLine string `json:"end_line"` | ||
StartLine string `json:"start_line"` | ||
} | ||
type GlSastTrackingItemsSignatures struct { | ||
Algorithm string `json:"algorithm"` | ||
Value string `json:"value"` | ||
} | ||
type GlSastFlags struct { | ||
Type string `json:"type"` | ||
Origin string `json:"origin"` | ||
Description string `json:"description"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters