Secret Scanning is a tool that checks every commit in the repository history for sensitive data contained in the code, e.g., API keys, tokens, certificates, and other secrets.
On the Home tab, navigate to Repositories and select a repository.
Under Security on the repository page, go to Secret scanning.
The list of secrets shows the last detection date.
To download a SARIF (Static Analysis Results Interchange Format) file for audit or integration with external systems, click Download SARIF.
To view information about a specific incident, select it from the list.
For each secret found, the following information will be provided:
Secret type.
Commit ID and last detection time.
Path to the file and the code snippet containing the secret.
Incident status: Open or Resolved.
False positive mark (if any).
Under Activity, you can view the history of events for a specific secret detected in the repository: when the warning was opened, who and when marked it as resolved or reopened it.
To mark an incident as resolved, follow these steps:
Next to the incident, click Resolved.
Add a comment for the incident.
Optionally, mark the incident as a false positive.