ggshield secret ignore
Description
Ignore some secrets.
ggshield secret ignore [OPTIONS]
The 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.
Options
--last-found
: Ignore secrets found in the lastggshield secret scan
run.
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.