Skip to main content

上传失败,因为禁用了 GitHub Code Security

只能将 SARIF 结果上传到启用了 GitHub Code Security 的专用或内部存储库。

About this error

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

This error is reported if a process attempts to upload a SARIF file to a repository where GitHub Code 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 and for uploads to repositories with private or internal visibility. GitHub Code Security is enabled by default for all public repositories.

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