Exit Code Control, and Output Format Options
还没有人认领这个 Issue。
评估
调研方向
Start with the Docker container execution method linked in the issue and inspect how exit status and report output are currently exposed. Before implementation, clarify whether the goal is configurable exit thresholds, CI pass/fail scoring, structured formats, or all three; done would require agreed behavior and CI-consumable output.
由索引模型根据 Issue 内容生成。
描述
Hey all, this is part question and part suggestion.
When running Docker-Bench as part of a CI (in particular, running it from the Docker container method), shouldn't the execution exit with a non-zero code if there are any 'notes' or at least 'warnings'?
Additionally, I would like to be able to control the exit (ie. only exit 1 if there are warnings, for example). Either this, or being able to control a "pass" or "fail" as part of CI if the returned score is +/- a certain value.
Further, is there a way to include output options in specific formats (ie. JUnit, XML, SARIF, etc.), so that it is more easily consumed by CI/CD tools?
- 主要语言
- Shell
- 星标
- 9.7k
- 派生
- 1k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
docker/docker-bench-security 的其他 Issue
-
[Bug] Test `check_1_1_5` uses a hard-coded path for Docker data root可能重新可做 @thaJeztah 于 334 天前认领,目前没有进行中的 PR。 未关闭
docker/docker-bench-security#577 · 已指派 1 人 ·
-
Update for newest Benchmark v1.8.0可能已有人在做 @thaJeztah 于 426 天前认领。 未关闭
docker/docker-bench-security#573 · 1 条评论 · 已指派 1 人 ·
-
name: ci可能重新可做 @thaJeztah 于 344 天前认领,目前没有进行中的 PR。 未关闭
docker/docker-bench-security#571 · 已指派 1 人 ·
-
[Bug] 1.1.5 doesn't take into account a changed data-root可能重新可做 @konstruktoid 于 624 天前认领,目前没有进行中的 PR。 未关闭
docker/docker-bench-security#568 · 2 条评论 · 已指派 1 人 ·
-
[Typo] 2.18 doesn't report ID in output可能已有人在做 @konstruktoid 于 630 天前认领。 未关闭
docker/docker-bench-security#567 · 已指派 1 人 ·
查看 docker/docker-bench-security 的全部 Issue
相似的 Issue
-
status: ready
难度 2/5 1-3 小时 新手友好度 73/100
melodic-software/claude-code-plugins#8537 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
vladmandic/sdnext#5161 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 78/100
hiero-ledger/solo-containers#254 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
CachyOS/cachyos-hooks#23 ·