Skip to main content

This version of GitHub Enterprise Server was discontinued on 2024-09-25. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise Server. For help with the upgrade, contact GitHub Enterprise support.

Upload fails because GitHub Advanced Security is disabled

You can only upload SARIF results to repositories where GitHub Advanced Security is enabled.

About this error

GitHub Advanced Security not enabled
GitHub Advanced Security blocked by a policy
403: GitHub Advanced Security is not enabled

This error is reported if a process attempts to upload a SARIF file to a repository where GitHub Advanced Security is not enabled or where use of this feature is blocked by a policy.

You will only see this error for SARIF files that contain results created using CodeQL.

For information on how to confirm this error and fix the problem, see Error: "Advanced Security must be enabled for this repository to use code scanning".