with one click
security-check
Whenever commit or push is mentioned
Menu
Whenever commit or push is mentioned
在进行 Code Review 时,使用这个技能对 LoongCollector 变更进行安全导向、架构一致性优先的深度代码评审。
Write commit messages following to Conventional Commits standards.
Building LoongCollector C++ and Go components. Use when compiling any part of the project.
Design document writing conventions. Use when writing or reviewing technical design documents.
LoongCollector E2E 测试全流程指南:设计、编写、运行和调试。当需要编写新 E2E 测试、运行现有测试、或排查 E2E 测试失败时使用此 skill。
Mermaid diagram conventions. Use whenever diagrams are needed in documentation or code review.
| name | security-check |
| description | Whenever commit or push is mentioned |
在提交和推送代码前,必须检查是否包含敏感信息,特别是 API Keys 和访问令牌。
sk- 开头的 API Keys(如 OpenAI、Anthropic、阿里云等)AIzaSy 开头的 Google API Keyspk_ 开头的公钥使用 bash scripts/security_check.sh commit 检查暂存区中是否包含敏感信息。如果没有输出 staging area is clear 那说明存在敏感信息。
使用 bash scripts/security_check.sh push 检查每个 commit 中是否包含敏感信息。如果没有输出 all commits are clear 那说明存在敏感信息,包含敏感信息的 commit hash 已被写入 task/sensitive_commits.txt。
# 根据task/sensitive_commits.txt中的检查结果reset,避免commit记录泄密
bash scripts/security_reset.sh