Run scripts/audit.py before every commit, push, or skill publish. No exceptions.
| Trigger | Command |
|---|---|
| --- | --- |
Before git commit | python3 {skill_dir}/scripts/audit.py --staged |
Before git push | python3 {skill_dir}/scripts/audit.py --last-commit |
Before clawhub publish | python3 {skill_dir}/scripts/audit.py |
| Ad-hoc scan any path | python3 {skill_dir}/scripts/audit.py |
{skill_dir} = /home/aladdin/.openclaw/workspace/skills/skill-security-audit
0 = clean1 = HIGH or MEDIUM findings (block publish/push)2 = usage error| Severity | Pattern |
|---|---|
| --- | --- |
| 🔴 HIGH | API keys, secrets, passwords, JWT tokens, WooCommerce keys, AWS keys, private key blocks, bearer tokens, .env files |
| 🟡 MEDIUM | Absolute /home/ paths, /root/ paths, refresh tokens, node_modules/ committed |
| 🔵 LOW | Hardcoded IPs, long base64 strings |
node_modules/.process.env.SECRET_NAME or read from a local config file outside the repo..gitignore.Before clawhub publish:
audit.py returns 0 (clean)node_modules/ not present in skill folderpackage.json name matches skill folder name共 1 个版本