CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/secrets-precommit

Scan files for leaked secrets (cloud, GitHub, Slack, Stripe, Google, AI keys, private keys, high-entropy assignments) with output that never prints the secret. Use when the user asks to check staged files or a repo for secrets before committing.

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

config.mdreferences/

Configuration file

JSON, at most 1 MiB, unknown fields rejected.

{
  "rules": [
    { "id": "corp-token", "description": "Internal token", "pattern": "corp_[a-z0-9]{8}" },
    { "id": "ticket-key", "pattern": "key=([0-9]{6})", "secretGroup": 1, "minEntropy": 2.0 }
  ],
  "disableDefaults": false,
  "allowlist": { "paths": ["*.md", "testdata/*"], "regexes": ["^dummy"] }
}
  • rules: up to 100 team rules added to the built-in ones. id is 1-64 characters from A-Z a-z 0-9 . _ - and unique. pattern is at most 1000 bytes. secretGroup is the capture group holding the secret (0 is the whole match). minEntropy is 0-8 bits per byte (0 disables the check).
  • disableDefaults: turns the ten built-in rules off (same as --no-defaults); at least one rule must remain.
  • allowlist.paths: globs with * (not crossing /), ? and [a-z], tested against the slash-separated path and its base name; a match skips the whole file. Up to 100 entries.
  • allowlist.regexes: tested against the captured secret; a match suppresses that finding. Up to 100 entries.

Pattern syntax in this skill's script is limited to RE2-compatible features: no lookaround, backreferences or atomic groups. Team patterns come from a trusted config; avoid nested unbounded repetitions in them.

SKILL.md

tile.json