awslabs / git-secrets

Prevents you from committing secrets and credentials into git repositories
Apache License 2.0
12.36k stars 1.17k forks source link

Added --name-only option #229

Open pzarfostph opened 1 year ago

pzarfostph commented 1 year ago

Description of changes:

The PR adds a --name-only option, to print only the file name containing the secret, not the secret value itself.

This is for useful for CICD processes, in the case that someone actually commits and pushes a credential that gets caught by the CICD script. You want the file to get flagged, but you don't want the actual credential echoed into the CICD log files.

This is a potential solution for Issue #187

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

sparr commented 1 year ago

This PR doesn't seem to actually include the new functionality. It adds the option, but doesn't use the option. Is there a commit missing?

sparr commented 1 year ago

If you rebase this on master you can skip the say check and then tests will run. Or if you give maintainers permission to push to your branch then I can do it.