1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/content/code-security/secret-scanning/managing-alerts-from-secret-scanning.md

3.9 KiB

title, intro, product, redirect_from, versions, type, topics, shortTitle
title intro product redirect_from versions type topics shortTitle
Managing alerts from secret scanning You can view and close alerts for secrets checked in to your repository. {% data reusables.gated-features.secret-scanning %}
/github/administering-a-repository/managing-alerts-from-secret-scanning
/code-security/secret-security/managing-alerts-from-secret-scanning
ghes ghae ghec
* * *
how_to
Secret scanning
Advanced Security
Alerts
Repositories
Manage secret alerts

{% data reusables.secret-scanning.beta %}

Managing {% data variables.product.prodname_secret_scanning %} alerts

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %}

  1. In the left sidebar, click Secret scanning alerts. {% ifversion fpt or ghes or ghec %} "Secret scanning alerts" tab {% endif %} {% ifversion ghae %} "Secret scanning alerts" tab {% endif %}
  2. Under "Secret scanning" click the alert you want to view. {% ifversion fpt or ghec %} List of alerts from secret scanning {% endif %} {% ifversion ghes %} List of alerts from secret scanning {% endif %} {% ifversion ghae %} List of alerts from secret scanning {% endif %}
  3. Optionally, select the {% ifversion fpt or ghec %}"Close as"{% elsif ghes or ghae %}"Mark as"{% endif %} drop-down menu and click a reason for resolving an alert. {% ifversion fpt or ghec %} Drop-down menu for resolving an alert from secret scanning {% endif %} {% ifversion ghes or ghae %} Drop-down menu for resolving an alert from secret scanning {% endif %}

Securing compromised secrets

Once a secret has been committed to a repository, you should consider the secret compromised. {% data variables.product.prodname_dotcom %} recommends the following actions for compromised secrets:

  • For a compromised {% data variables.product.prodname_dotcom %} personal access token, delete the compromised token, create a new token, and update any services that use the old token. For more information, see "Creating a personal access token for the command line."
  • For all other secrets, first verify that the secret committed to {% data variables.product.product_name %} is valid. If so, create a new secret, update any services that use the old secret, and then delete the old secret.

{% ifversion fpt or ghes > 3.1 or ghae-issue-4910 or ghec %}

Configuring notifications for {% data variables.product.prodname_secret_scanning %} alerts

When a new secret is detected, {% data variables.product.product_name %} notifies all users with access to security alerts for the repository according to their notification preferences. You will receive alerts if you are watching the repository, have enabled notifications for security alerts or for all the activity on the repository, are the author of the commit that contains the secret and are not ignoring the repository.

For more information, see "Managing security and analysis settings for your repository" and "Configuring notifications." {% endif %}