security-check
Installation
SKILL.md
安全检查规则
在提交和推送代码前,必须检查是否包含敏感信息,特别是 API Keys 和访问令牌。
检查内容
API Keys 和访问令牌
sk-开头的 API Keys(如 OpenAI、Anthropic、阿里云等)AIzaSy开头的 Google API Keyspk_开头的公钥- 其他常见的 API 令牌格式
如果要求Commit/提交,按以下步骤执行
先进行检查
使用 bash scripts/security_check.sh commit 检查暂存区中是否包含敏感信息。如果没有输出 staging area is clear 那说明存在敏感信息。
如果存在敏感信息
Related skills
More from alibaba/loongcollector
riper5-protocol
This workflow, known as RIPER-5, is designed exclusively for handling complex software engineering tasks such as system design, architectural refactoring, bug diagnosis, performance optimization, and multi-component integration.
2mermaid
Whenever diagrams or mermaid is mentioned
1compile
Building
1commit
Writing Commit Message
1selfmonitor
自监控指标、告警代码标准
1code-review
在进行 Code Review 时,使用这个技能对 LoongCollector 变更进行安全导向、架构一致性优先的深度代码评审。
1