Skip to main content

Diese Version von GitHub Enterprise Server wird eingestellt am 2026-03-17. Es wird keine Patch-Freigabe vorgenommen, auch nicht für kritische Sicherheitsprobleme. Für bessere Leistung, verbesserte Sicherheit und neue Features aktualisiere auf die neueste Version von GitHub Enterprise Server. Wende dich an den GitHub Enterprise-Support, um Hilfe zum Upgrade zu erhalten.

Error: "GitHub Advanced Security must be enabled for this repository to use code scanning"

If you see this error, make sure that GitHub Advanced Security is enabled.

About this error

GitHub Advanced Security must be enabled for this repository to use code scanning
403: GitHub Advanced Security is not enabled

This error is reported if you try to run code scanning in a repository where GitHub Advanced Security is not enabled or where use of this feature is blocked by a policy.

Confirming the cause of the error

  1. Navigieren Sie auf GitHub zur Hauptseite des Repositorys.

  2. Klicke unter dem Repositorynamen auf Settings. Wenn die Registerkarte „Einstellungen“ nicht angezeigt wird, wähle im Dropdownmenü die Option Einstellungen aus.

    Screenshot eines Repositoryheaders mit den Registerkarten. Die Registerkarte „Einstellungen“ ist dunkelorange umrandet.

  3. Klicke im Abschnitt „Security“ der Randleiste auf Code security and analysis.

  4. On the settings page, scroll down to "Advanced Security."

  5. If there is an associated and active Enable button, GitHub Advanced Security is available for this repository but not yet enabled.

  6. If use of GitHub Advanced Security is blocked by a policy, the Enable button is inactive and the owner of the policy is listed.

    "Screenshot of the Advanced Security" setting. The enterprise policy owner and the inactive "Enable" button are highlighted in dark orange.

Fixing the problem

If GitHub Advanced Security is available to your repository, you can enable it on the settings page.

If GitHub Advanced Security is blocked by a policy, you first need to request access.

Requesting access to GitHub Advanced Security

  1. In the "Code security and analysis" settings, click the enterprise name to display a list of users with access to edit the policy that controls access to Advanced Security products. For more information, see Erzwingen von Richtlinien für die Codesicherheit und -analyse für Unternehmen.
  2. Follow your company's policy for requesting access to additional features.

Enabling GitHub Advanced Security

  1. Open the "Code security" settings page.
  2. Next to the "Advanced Security" feature, click Enable.
  3. Rerun code scanning.