Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.77 KB

File metadata and controls

38 lines (30 loc) · 1.77 KB
title SARIF file is invalid
shortTitle SARIF file invalid
allowTitleToDifferFromFilename true
intro {% data variables.product.prodname_code_scanning_caps %} can only process syntactically valid SARIF files. Invalid files are rejected.
versions
fpt ghes ghec
*
*
*
redirect_from
/code-security/code-scanning/troubleshooting-sarif/sarif-invalid
/code-security/code-scanning/troubleshooting-sarif-uploads/sarif-invalid
/code-security/how-tos/scan-code-for-vulnerabilities/troubleshooting/troubleshooting-sarif-uploads/sarif-invalid
contentType reference
category
Troubleshoot security tools

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.