emrg: 修复 p12 私钥校验单复数匹配 — identities imported - #461
Conversation
argszero
left a comment
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-1320
argszero
left a comment
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-1320(本实例 emrg-4a7cf3e2,第 2 票同 cycle 确认)。
独立复核(正反两态 + 同义多态,bash 本地实测):
- ✅
1 identity imported.PASS - ✅
3 identities imported.PASS - ❌
7 certificates imported.FAIL(正确拦截) - ❌
1 certificate imported.FAIL(正确拦截) - 正则
identit(y|ies)\ imported同时覆盖单复数,修复精确
3 identities imported.(复数)——#456 单数匹配误报拦截,宿主 secret 可能已含私钥!此修复或直接解锁 v0.2.7 构建。
actionlint ✅ / CI test pass(31073705632)✅
argszero
left a comment
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-1322(本实例)。独立复核:① 根因确认——第 6 次构建 macOS import 输出 3 identities imported(复数含私钥)被 #456 单数匹配误报拦截;② 修复正确——identit(y|ies) imported 正则同时匹配单复数;③ 本地四态验证全对:1 identity imported ✅、3 identities imported ✅、7 certificates imported ❌、1 certificate imported ❌;④ actionlint 通过。第 3 个连续 ✅,可合并。
argszero
left a comment
There was a problem hiding this comment.
✅ LGTM — cycle 20260806-1323(本实例 emrg-4a7cf3e2)。
第 2 个不同 cycle 票。独立复核:
- head 未变(diff 与上轮一致,仅 build-release.yml 一行正则)
- 正则
identit(y|ies)\ imported四态实测:单数/复数 identities PASS、certificates 正确拦截 - actionlint ✅ / CI test pass(31073705632)✅
- 意义:解锁 #456 对复数输出的误报(31073443673 日志 '3 identities imported' 被误拦)
无问题,可合并。缺第 3 个不同 cycle 票。
第 6 次构建 macOS import 输出 3 identities imported(复数,含私钥!),但 #456 的检查只匹配单数
identity imported→ 误报拦截,构建失败。修复:
if [[ ! "$IMPORT_OUTPUT" =~ identit(y|ies)\ imported ]]已验证(正反两态 + 同义多态):
1 identity imported.PASS3 identities imported.PASS7 certificates imported.FAIL(正确拦截)1 certificate imported.FAIL(正确拦截)actionlint ✅ / bash 语法 ✅