Skip to main content

Cette version de GitHub Enterprise Server ne sera plus disponible le 2026-03-17. Aucune publication de correctifs n’est effectuée, même pour les problèmes de sécurité critiques. Pour de meilleures performances, une sécurité améliorée et de nouvelles fonctionnalités, effectuez une mise à niveau vers la dernière version de GitHub Enterprise. Pour obtenir de l’aide sur la mise à niveau, contactez le support GitHub Enterprise.

Impossible d’activer CodeQL dans un référentiel privé

GitHub Advanced Security doit être activé pour pouvoir utiliser code scanning sur les référentiels privés.

Confirm whether GitHub Advanced Security is enabled

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. In the "Security" section of the sidebar, click Code security and analysis.

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

  5. If there is an associated and active Enable button, 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.

Requesting access to GitHub Advanced Security

  1. In the "Advanced Security" settings, click the enterprise or organization name to display a list of users with access to edit the policy that controls access to GitHub Advanced Security. For more information, see Enforcing policies for code security and analysis for your enterprise.
  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.