(config: Config, cache: Cache)
return len(cache.last_found_secrets)
Add last found secrets from .cache_ggshield into ignored_matches
    in the local .gitguardian.yaml config file so that they are ignored on next run
    Secrets are added as `hash`
Add last found secrets from .cache_ggshield into ignored_matches
    in the local .gitguardian.yaml config file so that they are ignored on next run
    Secrets are added as `hash`
Add last found secrets from . cache_ggshield into ignored_matches in the local . gitguardian . yaml config file so that they are ignored on next run Secrets are added as hash
def ignore_last_found(config: Config, cache: Cache) -> int:
    """
    Add last found secrets from .cache_ggshield into ignored_matches
    in the local .gitguardian.yaml config file so that they are ignored on next run
    Secrets are added as `hash`
    """
    for secret in cache.last_found_secrets:
        config.add_ignored_match(secret)
    config.save()
    return len(cache.last_found_secrets)
def ignore_last_found ( config : Config , cache : Cache ) -> int : for secret in cache . last_found_secrets : config . add_ignored_match ( secret ) config . save ( ) return len ( cache . last_found_secrets )