Skip to content

Instantly share code, notes, and snippets.

@souvikhaldar
Last active July 2, 2021 12:18
Show Gist options
  • Save souvikhaldar/e40f83b026ea04522a7993dda5785ed3 to your computer and use it in GitHub Desktop.
Save souvikhaldar/e40f83b026ea04522a7993dda5785ed3 to your computer and use it in GitHub Desktop.
githound
# Output warning on match but continue
warn:
- '(?i)user(name)?\W*[:=,]\W*.+$'
- '\/Users\/\w+\/'
# Fail immediately upon match
fail:
- '(?i)db_(user(name)?|pass(word)?|name)\W*[:=,]\W*.+$'
- '(?i)pass(word)?\W*[:=,]\W*.+$'
- '\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b'
# Skip on matched filename
skip:
- '\.example$'
- '\.sample$'
- '^.*\.(jpg|JPG|gif|GIF|doc|DOC|pdf|PDF)$'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment