Your own token format as a rule
A short TOML file describes the format of an internal token; --rules adds it to the built-in ones.
Your own token format as a rule
site/captures/usecases/team-rule/# deploy.sh
#!/bin/sh
curl -H "X-Acme-Token: acme_Vn4Kq8Zx2Lm7Tc1Rw5Bh9Dj3" https://deploy.acme.example/run
# team-rules.toml
[[rule]]
id = "acme-service-token"
name = "Acme service token"
severity = "high"
pattern = '''\b(acme_[A-Za-z0-9]{24})\b'''
keywords = ["acme_"]
capture = 1$ git add deploy.sh $ nosecrets scan --staged --rules team-rules.toml deploy.sh:2:24 [HIGH] Acme service token (acme-service-token) nsi_a7570523585c preview: acme...