代码秘密扫描治理
原名:secret-scanning
配置和处理代码仓库中的密钥扫描、推送保护与告警。
中文 Skills 技能说明
适合防止 API Key、令牌和私钥进入版本库。只做防御性治理,发现真实凭据时不在输出中完整回显;撤销、轮换、关闭告警或修改仓库规则必须由有权限的人确认。
上游能力依据
上游原始适用说明:Guide for configuring and managing GitHub secret scanning, push protection, custom patterns, and secret alert remediation. For pre-commit secret scanning in AI coding agents via the GitHub MCP Server, this skill references the Advanced Security plugin (advanced-security@copilot-plugins). Use this skill when enabling secret scanning, setting up push protection, defining custom patterns, triaging alerts, resolving blocked pushes, or when an agent needs to scan code for secrets before committing.
上游 SKILL.md 主要章节(保留原文标题):
- When to Use This Skill
- How Secret Scanning Works
- Availability
- Core Workflow — Enable Secret Scanning
- Step 1: Enable Secret Protection
- Step 2: Enable Push Protection
- Step 3: Configure Exclusions (Optional)
- Step 4: Enable Additional Features (Optional)
- Core Workflow — Resolve Blocked Pushes
- Option A: Remove the Secret
使用边界
先确认授权范围、资产边界和证据来源。输出用于防御性检查与人工决策,不自动执行攻击、绕过或破坏性操作。
作者、翻译与许可证
- 原作者
- GitHub, Inc. 与 awesome-copilot contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/github/awesome-copilot/tree/3f0bba475ec40b9680e1d0311b9caffeec5ad4c3/skills/secret-scanning
适用范围
平台:linux、macos、windows;标签:安全与合规、代码秘密扫描治理
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。