Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.61 KB

File metadata and controls

37 lines (29 loc) · 1.61 KB
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
Code scanning
Errors
SARIF
Troubleshooting
feature
code-scanning-tool-status-page
/code-security/code-scanning/troubleshooting-sarif/sarif-invalid

About this error

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.

Confirming the cause of the error

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.

Fixing the problem

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."