thoughtworks / talisman

Using a pre-commit hook, Talisman validates the outgoing changeset for things that look suspicious — such as tokens, passwords, and private keys.
https://thoughtworks.github.io/talisman/
MIT License
1.87k stars 241 forks source link

Custom Pattern not detected in .talismanrc #427

Closed louisdec95 closed 1 year ago

louisdec95 commented 1 year ago

Issue .talismanrc not detecting custom pattern

.talismanrc.yaml file content custom_patterns:

Checking regex image

Expected behavior Talisman is supposed to detect the following regex and flag it.

E.g. S1234567A T1234567H S1234567P

Remarks

  1. .talismanrc file saves as .talismanrc.yaml
  2. Could this be an issue of not installing talisman globally?

Desktop

louisdec95 commented 1 year ago

solved by using

.talismanrc file custom_patterns: