Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat(core): mixed-provider policies — choose the provider per evaluator

未关闭
#342 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python, terraform
领域
backend, security

调研方向

首先搜索 meta.required_provider、评估器解析以及 provider/input-kind 验证,以追踪 policy 当前如何选择并检查其 provider。为一个在同一 input 上组合 terraform_plan 和 json 评估器的 policy 添加有针对性的覆盖,包括不匹配的验证场景。完成标准是评估成功,并且每个结果都归属于其 provider;不匹配应导致验证失败,而不是被跳过。

由索引模型根据 Issue 内容生成。

描述

enhancement

Today meta.required_provider fixes one provider for every evaluator in a policy. Users need a
single policy whose evaluators use different providers over the same input — e.g. one evaluator
reading the plan through terraform_plan's typed operations, and another reaching a section the
typed provider doesn't expose through the json provider — with eval_expression combining their
results as it already does. Tracked on the public feedback board ("policy evaluations across
different tirith providers"); this is the substance of #223.

Proposal. Keep meta.required_provider as the policy-level default; allow each evaluator an
optional provider field overriding it. Validation checks that every provider used can read the
supplied input kind; the result model and eval_expression are unchanged. Distinct from "named
multi-input" (below), which adds several documents — this is several providers over one document,
and the multi-input work builds on it.

Acceptance. A policy mixing a terraform_plan evaluator and a json evaluator over one plan
file evaluates end to end, each result attributed to its provider; a provider/input-kind mismatch
is a validation error, not a runtime skip.

主要语言
Python
星标
167
派生
47
平均合并
1 天 21 小时
30 天内合并 PR
7

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

StackGuardian/tirith 的其他 Issue

查看 StackGuardian/tirith 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。