Ignore some secrets.
ggshield secret ignore [OPTIONS]
secret ignore command instructs ggshield to ignore secrets it finds during a scan.
This command needs to be used with an option to determine which secrets it should ignore.
For now, it only handles the
--last-found option, which 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.
--last-found: Ignore secrets found in the last
ggshield secret scanrun.
This command supports all ggshield global options.
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.