Skip to main content

ggshield secret ignore

Description

Ignore some secrets.

ggshield secret ignore [OPTIONS] SECRET_SHA

The secret ignore command instructs ggshield to ignore secrets.

Option --name allows to specify the name of the secret to ignore.

Option --last-found ignores all secrets found during the last scan.

The command adds the ignored secrets to the secrets.ignored_matches section of your local configuration file. If no local configuration file is found, a .gitguardian.yaml file is created.

Options

  • --last-found: Ignore secrets found in the last ggshield secret scan run.
  • --name NAME: Name of the secret to ignore.

This command supports all ggshield global options.

See also

Warning: Using this command will discard any comments present in the config file.

Note: ggshield does not share its ignored secrets with the dashboard. Therefore, if you have integrated a repository in the dashboard and are using ggshield on this same repository:

  • a secret ignored on ggshield will still show as a potential incident on your GitGuardian dashboard.
  • a secret ignored on the dashboard will be ignored by ggshield.

How can I help you ?