Supported SARIF properties
Static Analysis Results Interchange Format (SARIF) is an output file format which is available in software composition analysis (SCA) and static analysis reports in Amazon CodeCatalyst. The following example shows how to manually configure SARIF in a static analysis report:
Reports:
MySAReport:
Format: SARIFSA
IncludePaths:
- output/sa_report.json
SuccessCriteria:
StaticAnalysisFinding:
Number: 25
Severity: HIGH
CodeCatalyst supports the following SARIF properties which can be used to optimize how the analysis results will appear in your reports.
Topics
sarifLog
object
Name | Required | Description |
---|---|---|
|
Yes |
The URI of the SARIF JSON schema for version
2.1.0 |
|
Yes |
CodeCatalyst only supports SARIF version 2.1.0. |
|
Yes |
A SARIF file contains an array of one or more runs, each of which represents a single run of the analysis tool. |
run
object
Name | Required | Description |
---|---|---|
|
Yes |
A |
|
No |
A property that indicates the name of the tool used to perform analysis. |
|
Yes |
The results of the analysis tool that are displayed on CodeCatalyst. |
toolComponent
object
Name | Required | Description |
---|---|---|
|
Yes |
The name of the analysis tool. |
|
No |
A total number of artifacts analyzed by the tool. |
|
Yes |
An array of |
reportingDescriptor
object
Name | Required | Description |
---|---|---|
|
Yes |
The unique identifier for the rule that is used to reference a finding. Maximum length: 1,024 characters |
|
No |
The display name of the rule. Maximum length: 1,024 characters |
|
No |
A shortened description of the rule. Maximum length: 3,000 characters |
|
No |
A complete description of the rule. Maximum length: 3,000 characters |
|
No |
A string that can be localized to contain the absolute URI of the primary documentation for the rule. Maximum length: 3,000 characters |
|
No |
A flag that indicates if the scan finding has been scored. |
|
No |
A fixed set of strings that specify the severity level of the finding. Maximum length: 1,024 characters |
|
No |
A qualitative severity rating of Common Vulnerability Scoring System v3.1 |
|
No |
A CVSS v3 Base Score ranging from 0.0 - 10.0 |
|
No |
If CVSS v3 values are not available, CodeCatalyst searches for CVSS v2 values. |
|
No |
A CVSS v2 Base Score ranging from 0.0 - 10.0 |
|
No |
A fixed set of strings that specify the severity level of the finding. Maximum length: 1,024 characters |
|
No |
The default severity of a rule. |
result
object
Name | Required | Description |
---|---|---|
|
Yes |
The unique identifier for the rule that is used to reference a finding. Maximum length: 1,024 characters |
|
Yes |
The index of the associated rule in the tool component |
|
Yes |
A message that describes the result and displays the message for each finding. Maximum length: 3,000 characters |
|
No |
A value between 0.0 to 100.0 inclusive that represents the priority or importance of the result. This scale values 0.0 being the lowest priority and 100.0 being the highest priority. |
|
No |
The severity of the result. Maximum length: 1,024 characters |
|
No |
A flag that indicates if the scan finding has been scored. |
|
No |
A fixed set of strings that specify the severity level of the finding. Maximum length: 1,024 characters |
|
No |
A qualitative severity rating of Common Vulnerability Scoring System v3.1 |
|
No |
A CVSS v3 Base Score ranging from 0.0 - 10.0 |
|
No |
If CVSS v3 values are not available, CodeCatalyst searches for CVSS v2 values. |
|
No |
A CVSS v2 Base Score ranging from 0.0 - 10.0 |
|
No |
A fixed set of strings that specify the severity level of the finding. Maximum length: 1,024 characters |
|
Yes |
The set of locations where the result was detected. Only one location should be included unless the problem can only be corrected by making a change at every specified location. CodeCatalyst uses the first value in the location array to annotate the result. Maximum number of |
|
No |
A list of additional locations references in the finding. Maximum number of |
|
No |
An array of |
location
object
Name | Required | Description |
---|---|---|
|
Yes |
Identifies the artifact and region. |
|
No |
The set of locations described by name without reference to the artifact. |
physicalLocation
object
Name | Required | Description |
---|---|---|
|
Yes |
The URI indicating the location of an artifact, usually a file either in the repository or generated during a build. |
|
No |
The fall back URI indicating the location of the file. This is used if |
|
Yes |
The line number of the first character in the region. |
|
Yes |
The column number of the first character in the region. |
|
Yes |
The line number of the last character in the region. |
|
Yes |
The column number of the last character in the region. |
logicalLocation
object
Name | Required | Description |
---|---|---|
|
No |
Additional information that describes the location of the result. Maximum length: 1,024 characters |
fix
object
Name | Required | Description |
---|---|---|
|
No |
A message that displays a recommendation for each finding. Maximum length: 3,000 characters |
|
No |
The URI indicating the location of the artifact that needs to be updated. |