Skip to content

修复 Actions 输入安全、扫描范围绕过和报告脱敏 - #28

Merged
RyanCoreAI merged 7 commits into
mainfrom
codex/fix-action-and-path-safety-20261102
Nov 14, 2026
Merged

RyanCoreAI merged 7 commits into
mainfrom
codex/fix-action-and-path-safety-20261102

Conversation

@RyanCoreAI

@RyanCoreAI RyanCoreAI commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

修复 Actions 参数注入、Git C-quoted 路径处理、扫描范围 glob 绕过和跨规则报告脱敏。包含 inline-ignore 生效范围、hunk 文本边界与稳定 Git patch 输出修复。

Git 路径头改为线性扫描,消除 CodeQL 指出的正则回溯风险,并覆盖长路径、混合引号、空格与畸形输入。安全测试在运行时构造合成密钥与忽略标记,保持原有攻击样本和断言,避免独立扫描器误认测试源码;扫描规则、禁止 inline-ignore 及固定发布版扫描器均保留。扫描失败时也上传已生成的 SARIF。

验证(2026-11-14):本地 TypeScript 构建、83/83 测试、30/30 benchmark 通过。最终提交的 GitHub CI 在 Windows/Ubuntu × Node 20/22 全部通过,CodeQL 和 PatchBrake SARIF 检查均通过:https://github.com/RyanCoreAI/patchbrake/actions/runs/43546462626 。

工具仍是启发式 diff 扫描,不能保证发现所有密钥。脱敏内容变化可能影响 fingerprint,更新 baseline 前需复核。

Comment thread src/diff-parser.ts Fixed
@RyanCoreAI RyanCoreAI changed the title 修复 Action 输入注入和带引号 Git 路径漏检 修复 Actions 输入安全、扫描范围绕过和报告脱敏 Nov 4, 2026
Comment thread tests/deep-audit-security.test.ts Fixed
Comment thread tests/deep-audit-security.test.ts Fixed
Comment thread tests/deep-audit-security.test.ts Fixed
Comment thread tests/deep-audit-security.test.ts Fixed
Comment thread tests/deep-audit-security.test.ts Fixed
Comment thread tests/deep-audit-security.test.ts Fixed
Comment thread tests/deep-audit-security.test.ts Fixed
@RyanCoreAI
RyanCoreAI merged commit 2cc13ee into main Nov 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants