Skip to content

Instantly share code, notes, and snippets.

@gburgett
Created May 27, 2017 11:08
Show Gist options
  • Save gburgett/d0d6543ca8170fdaef09458f8b66e98d to your computer and use it in GitHub Desktop.
Save gburgett/d0d6543ca8170fdaef09458f8b66e98d to your computer and use it in GitHub Desktop.
git secrets config for nodejs project
[secrets]
patterns = .*(TOKEN|token|SECRET|secret|KEY|key|PASS|pass)\\S*\\s*=\\s*\\w+\\s*$
patterns = .*(TOKEN|token|SECRET|secret|KEY|key|PASS|pass)\\S*\\s*=\\s*[[:punct:]]\\S+[[:punct:]]\\s*
allowed = .+=\\*+(\\s.*)?$
allowed = .+=\\s*process\\.env\\.\\S+
allowed = .+=\\s*[[:punct:]]test_.+$
allowed = `.+=\\s*\\${.+$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment