Skip to main content

Habilitar a detecção de segredos genéricos da plataforma AI

Você pode habilitar a detecção de segredos genéricos baseada em IA para seu repositório ou organização. Os alertas para segredos genéricos, como senhas, são exibidos em outra lista na página de alertas de secret scanning.

Note: Generic secret detection for secret scanning is in beta. Functionality and documentation are subject to change. During this phase, generic secret detection is limited to looking for passwords in source code.

Enabling AI-powered generic secret detection for your repository

To use generic secret detection, an enterprise owner must first set a policy at the enterprise level that controls whether repositories can enable or disable AI detection. This policy is set to "allowed" by default.

You can then enable the feature in the "Code security and analysis" settings page of your repository.

  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. Under "Code security and analysis", find "GitHub Advanced Security."

  5. Under "Secret scanning", select the checkbox next to "Use AI detection to find additional secrets".

Enabling AI-powered generic secret detection for your organizations

To use generic secret detection, an enterprise owner must first set a policy at the enterprise level that controls whether repositories in an organization can enable or disable AI detection. This policy is set to "allowed" by default.

You can then enable the feature in the security settings page of your organization.

  1. In the upper-right corner of GitHub, select your profile photo, then click Your organizations.
  2. Next to the organization, click Settings.
  3. In the "Security" section of the sidebar, click Code security then Global settings.
  4. Under "Secret scanning", select the checkbox next to "Use AI detection to find additional secrets".

For information on how to view alerts for generic secrets that have been detected using AI, see "Viewing and filtering alerts from secret scanning."

Further reading