darnit plan --profile still refuses after #597 fixed the reason
维护者通常 3 天内回复
已经有一个关联 PR 被合并了。
- #713 来自 @JohnsonLyu —— 已合并
评估
调研方向
拒绝逻辑位于 cmd_plan 中,其注释引用的 #568 已关闭。请将它与已经通过 _resolve_profile_ids 缩小控制项范围的 cmd_audit 进行比较。使用 darnit plan --profile level1_quick <repo> 复现问题,并确认它以退出码 1 结束。完成的标准是:plan 接受该配置文件,只输出所选的控制项,并且对于未知配置文件或空选择返回与 audit 相同的错误。
由索引模型根据 Issue 内容生成。
描述
darnit plan --profile still refuses, and the reason it gives no longer applies.
#576 made darnit audit --profile filter the controls and left plan refusing the flag, because plan crashed on frameworks whose controls carry no level (#568), so the flag couldn't be wired in a way that could be tested on the Baseline. #597 fixed that crash and closed #568.
On main (155dcc1b), on jonschlinkert/is-odd:
darnit plan <repo>exits 0 and prints the plan.darnit plan --profile level1_quick <repo>exits 1 withdarnit plan does not support --profile yet (#568); use darnit audit --profile, which points at a closed issue.darnit audit --profile level1_quick <repo>audits 26 of the 66 controls.
Suggested fix: narrow the plan with _resolve_profile_ids as cmd_audit does, with the same errors for an unknown profile or an empty selection, and remove the refusal and its comment in cmd_plan.
Drafted with AI assistance (Claude), reviewed and filed by me. Measurements quoted were executed and verified.
- 主要语言
- Python
- 星标
- 22
- 派生
- 27
- 平均合并
- 4 天 20 小时
- 30 天内合并 PR
- 75
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
darnitdevorg/darnit 的其他 Issue
-
ci needs triage
难度 2/5 1-3 小时 新手友好度 62/100
darnitdevorg/darnit#607 ·
维护者通常 3 天内回复
-
good first issue maintenance
难度 2/5 1-3 小时 新手友好度 83/100
darnitdevorg/darnit#587 · 2 条评论 ·
维护者通常 3 天内回复
-
Container image has no zizmor, so OSPS-AC-04.02 always reports missing_tool可能已有人在做 @mlieberman85 于 20 天前认领。 未关闭infrastructure module-baseline
难度 2/5 1-3 小时 新手友好度 65/100
darnitdevorg/darnit#585 · 1 条评论 ·
维护者通常 3 天内回复
-
module-baseline
难度 2/5 1-3 小时 新手友好度 76/100
darnitdevorg/darnit#344 · 1 条评论 ·
维护者通常 3 天内回复
-
documentation module-core
难度 2/5 1-3 小时 新手友好度 68/100
darnitdevorg/darnit#196 ·
维护者通常 3 天内回复
查看 darnitdevorg/darnit 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
strawberry-graphql/strawberry#4794 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
dataforgoodfr/cetolog#21 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
btclib-org/btclib#2932 ·
维护者通常 1 天内回复
-
metrics priority: medium
难度 1/5 1-3 小时 新手友好度 86/100
LearningCircuit/local-deep-research#8336 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100