зеркало из https://github.com/github/docs.git
Add new limits to Code Scanning results-exceed-limit.md (#52640)
Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com> Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
This commit is contained in:
Родитель
a5a352254f
Коммит
313e02ea84
|
@ -25,6 +25,7 @@ redirect_from:
|
|||
Analysis SARIF file exceeded alert limits
|
||||
Rule tags in SARIF file exceed limits
|
||||
Alert in SARIF upload exceeded thread flow location limits
|
||||
Repository is at risk of exceeding the alert limit.
|
||||
|
||||
# SARIF results exceed hard limit
|
||||
Alert(s) in SARIF file exceeded thread flow location limits
|
||||
|
@ -34,6 +35,7 @@ redirect_from:
|
|||
Analysis SARIF file rejected due to result limits
|
||||
Analysis SARIF file rejected due to rule limits
|
||||
Analysis SARIF file rejected due to run limits
|
||||
All analysis uploads blocked due to alert limit
|
||||
```
|
||||
|
||||
{% data variables.product.prodname_code_scanning_caps %} sets two types of limits on fields in SARIF results files.
|
||||
|
@ -85,3 +87,23 @@ The best way to resolve this problem is usually to identify the query that repor
|
|||
## Fixing "Analysis SARIF file rejected due to rule tag limits"
|
||||
|
||||
You need to update the SARIF file or the generator so that the array of tags reported for each `reportingDescriptor` object is fewer than 10. For more information, see `properties.tags[]` in "[AUTOTITLE](/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#reportingdescriptor-object)."
|
||||
|
||||
## Fixing "Repository is at risk of exceeding the alert limit" & "All analysis uploads blocked due to alert limit"
|
||||
|
||||
This limit is triggered by a repository producing more unique alerts than should ever exist as part of a well functioning {% data variables.product.prodname_code_scanning %} configuration.
|
||||
It is possible that this is due to the output of a third-party tool being used, and may not be a user configuration error.
|
||||
Both user configuration error and tool vendor error are possible causes.
|
||||
|
||||
There are a few steps to fix this problem.
|
||||
|
||||
1. Look at the SARIF files you are producing to identify the cause of {% data variables.product.prodname_code_scanning %} alerts being classed as distinct across runs of a tool. Usually this is due to one of the following:
|
||||
* The SARIF `artifactLocation.uri` property (filepath in the {% data variables.product.prodname_code_scanning %} alert user interface) is not deterministic due to the inclusion of temporary directories or generated file names.
|
||||
* The tool used produces unstable SARIF rule names or `artifactLocation object uri property` values, which is usually the result of using hashes (from git commits or docker image SHAs, for example) or other sources of data that change across runs or environments.
|
||||
1. Once you have identified the source of the issue, you should update your configuration accordingly, and contact the tool vendor if their tool is the source of the unstable SARIF results.
|
||||
1. Stop uploading code scanning results for any third-party tools that produce non-deterministic output until they have been fixed by the tool vendor.
|
||||
|
||||
### Additional steps for "All analysis uploads blocked due to alert limit"
|
||||
|
||||
On top of fixing the code scanning configuration and removing or fixing the output of third-party tools, you will need to contact {% data variables.contact.contact_support %} to assist you in deleting the alerts for any offending configurations.
|
||||
|
||||
**There is no self-service method for deleting alerts at this time, so contacting customer support is neccessary before code-scanning can be re-enabled.**
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
| Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. |
|
||||
| Location per result | 1,000 | Only 100 locations will be included. |
|
||||
| Tags per rule | 20 | Only 10 tags will be included. |
|
||||
| Alert Limit | 1,000,000 | None |
|
||||
|
||||
{% endrowheaders %}
|
||||
|
|
Загрузка…
Ссылка в новой задаче