h7ml/Security Auto Scan
自动扫描和清理 GitHub Actions 中的恶意 workflow 文件
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Oct 8, 2025
- License
- MIT
Pinned Snippet
uses: h7ml/security-auto-scan@e9772000157cb7aea836bee84b3d615e9f5cd09b # no releases — HEAD as of 2026-07-11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub Token (需要 repo 和 workflow 权限) | yes | — |
| keyword | 搜索关键词(恶意特征) | no | .oast.fun |
| dry-run | 仅扫描模式(true/false) | no | false |
| create-issue | 发现威胁时创建 Issue(true/false) | no | true |
| disable-workflows | 禁用受感染仓库的工���流(true/false) | no | false |
| mask-sensitive-data | 日志脱敏(自动隐藏敏感信息 - true/false) | no | true |
| encrypt-logs | 日志加密(加密存储详细日志 - true/false) | no | true |
| verbose | 详细日志模式(输出详细日志到控制台 - true/false) | no | false |
| notification-webhook | Webhook URL(支持 Slack/Teams/Discord 等) | no | "" |
| notification-template | 通知模板(compact/detailed/custom) | no | detailed |
| report-format | 报告输出格式(markdown/json/html/pdf) | no | markdown |
Outputs
| name | description |
|---|---|
| infected-repos | 受感染仓库数量 |
| success-count | 清理成功数量 |
| failed-count | 清理���败数量 |
| report-path | 扫描报告路径 |