title | shortTitle | allowTitleToDifferFromFilename | intro | type | topics | versions | redirect_from | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SARIF file is invalid |
SARIF file invalid |
true |
{% data variables.product.prodname_code_scanning_caps %} can only process syntactically valid SARIF files. Invalid files are rejected. |
reference |
|
|
|
Invalid SARIF
SARIF file invalid
SARIF ZIP upload is invalid
400: Bad Request if the sarif field is invalid
One of these errors is reported if {% data variables.product.prodname_code_scanning %} cannot parse the SARIF file.
You are unlikely to see this error when using {% data variables.product.prodname_codeql %} analysis.
You can investigate the underlying cause of the error by looking at the log for the workflow run that uploaded the analysis and by checking the SARIF file in a validator. For more information, see "AUTOTITLE" and visit the Microsoft SARIF validator.
After you identify the invalid parts of the SARIF file, you may be able to resolve smaller issues manually, but you may need to talk to the maintainers of the tool. For information about validation and the format supported by {% data variables.product.prodname_code_scanning %}, see "AUTOTITLE."