Query Environment Information for Workflow Jobs
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
调研方向
首先跟踪 workflow 作业的表示方式,以及如何查询 GitHub REST API 以获取仓库环境。完成的标准是每个作业都暴露一个包含其名称以及保护规则中是否出现必需审查者的 Environment,这样 Cypher 查询就可以减少误报。
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
Many workflows that would be vulnerable to pwn requests or injection use a deployment environment with required approvals to protect a job from running. Usually this will manifest as a single job that runs in an environment in the beginning, and all other jobs will depend on that check succeeding.
It is possible to query a list of environments and their rules using the REST API without authentication. By adding this feature it will be possible to update cypher queries to reduce false positives.
Describe the solution you'd like
I'd like to see an Environment graph object attached to each job. The environment object should track the environment name and if the protection_rules array contains one or more entries of the required_reviewers class.
Here is an example of a repository that uses deployment environments: https://api.github.com/repos/netflix/mantis/environments
Describe alternatives you've considered
None, this is pretty clear cut because environment gating with required approvals will require manual verification to ensure a detection is not a false positive.
Additional context
Mentioned this in an earlier issue - https://github.com/CycodeLabs/raven/issues/111, so this covers adding the environment check.
I'm actually working on implementing this and will have a PR open soon!
- 主要语言
- Python
- 星标
- 748
- 派生
- 46
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CycodeLabs/raven 的其他 Issue
-
`library` folder not included in the source distribution可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭query-library
难度 2/5 1-3 小时 新手友好度 62/100
CycodeLabs/raven#183 · 2 条评论 ·
-
报错未关闭
难度 4/5 3-5 天 新手友好度 15/100
CycodeLabs/raven#199 ·
-
难度 4/5 3-5 天 新手友好度 35/100
CycodeLabs/raven#188 · 2 条评论 · 1 个 reaction ·
-
feature indexer
难度 3/5 1-2 天 新手友好度 45/100
CycodeLabs/raven#114 ·
-
Add option to scan a specific repo可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭downloader feature good first issue
难度 3/5 1-2 天 新手友好度 25/100
CycodeLabs/raven#109 · 2 条评论 · 1 个 reaction ·
相似的 Issue
-
area/install reliability
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
FluidNumerics/fluid-walk-blocker#191 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
TransformerLensOrg/TransformerLens#1868 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
climate-analytics-lab/jax-gcm#1057 ·
维护者通常 1 天内回复