← Back to Pull requests

build(deps): bump github.com/open-policy-agent/opa from 1.19.0 to 1.20.1 #2918

Closed
unknown closed this pull request without merging on Sep 03, 2026 23:29 UTC
View on GitHub
unknown unknown commented on Sep 03, 2026 07:02 UTC
Author

Bumps github.com/open-policy-agent/opa from 1.19.0 to 1.20.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/open-policy-agent/opa/releases">github.com/open-policy-agent/opa's releases</a>.</em></p>
<blockquote>
<h2>v1.20.1</h2>
<p>This release includes a bug fix for a regression introduced in v1.20.0 in
<a href="https://redirect.github.com/open-policy-agent/opa/issues/9098">comparing a number to some float values</a>.
Thanks <a href="https://github.com/kmadan"><code>@​kmadan</code></a> for reporting the issue and submitting a fix!</p>
<h2>v1.20.0</h2>
<p>This release contains a mix of new features and bug fixes. Notably:</p>
<ul>
<li><strong>New Rego keywords: <code>and</code> and <code>or</code></strong>, for combining conditions inside a single rule body</li>
<li><code>allow_net</code> now restricts remote JSON Schema <code>$ref</code> fetching from <code>json.match_schema</code> and <code>json.verify_schema</code></li>
<li>Coverage reports can now explain <em>why</em> a range is not covered</li>
<li>Much faster partial evaluation for dynamically composed policies</li>
</ul>
<h3>New Rego keywords: <code>and</code> and <code>or</code> (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7602">#7602</a>)</h3>
<p>Rego gains two keywords for combining conditions inside a single rule body — a long-standing
request, and one of the larger additions to the language in some time. <code>and</code> and <code>or</code> let control
flow that previously had to be split across helper rules stay where it is read.</p>
<p>Before, a rule body that needed to succeed on one of several conditions meant extracting a rule:</p>
<pre lang="rego"><code>package example
<p>allow if {<br />
input.method == &quot;GET&quot;<br />
admin_or_public_owner<br />
}</p>
<p>admin_or_public_owner if input.user.admin</p>
<p>admin_or_public_owner if {<br />
input.user.owner<br />
input.resource.public<br />
}<br />
</code></pre></p>
<p>Now:</p>
<pre lang="rego"><code>package example
<p>import future.keywords.and<br />
import future.keywords.or</p>
<h1>the and groups first, so this reads as:</h1>
<h1>an admin, or an owner of a public resource</h1>
<p>allow if {<br />
input.method == &quot;GET&quot;<br />
&lt;/tr&gt;&lt;/table&gt;<br />
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/open-policy-agent/opa/blob/main/CHANGELOG.md">github.com/open-policy-agent/opa's changelog</a>.</em></p>
<blockquote>
<h2>1.20.1</h2>
<p>This release includes a bug fix for a regression introduced in v1.20.0 in
<a href="https://redirect.github.com/open-policy-agent/opa/issues/9098">comparing a number to some float values</a>.
Thanks <a href="https://github.com/kmadan"><code>@​kmadan</code></a> for reporting the issue and submitting a fix!</p>
<h2>1.20.0</h2>
<p>This release contains a mix of new features and bug fixes. Notably:</p>
<ul>
<li><strong>New Rego keywords: <code>and</code> and <code>or</code></strong>, for combining conditions inside a single rule body</li>
<li><code>allow_net</code> now restricts remote JSON Schema <code>$ref</code> fetching from <code>json.match_schema</code> and <code>json.verify_schema</code></li>
<li>Coverage reports can now explain <em>why</em> a range is not covered</li>
<li>Much faster partial evaluation for dynamically composed policies</li>
</ul>
<h3>New Rego keywords: <code>and</code> and <code>or</code> (<a href="https://redirect.github.com/open-policy-agent/opa/issues/7602">#7602</a>)</h3>
<p>Rego gains two keywords for combining conditions inside a single rule body — a long-standing
request, and one of the larger additions to the language in some time. <code>and</code> and <code>or</code> let control
flow that previously had to be split across helper rules stay where it is read.</p>
<p>Before, a rule body that needed to succeed on one of several conditions meant extracting a rule:</p>
<pre lang="rego"><code>package example
<p>allow if {<br />
input.method == &quot;GET&quot;<br />
admin_or_public_owner<br />
}</p>
<p>admin_or_public_owner if input.user.admin</p>
<p>admin_or_public_owner if {<br />
input.user.owner<br />
input.resource.public<br />
}<br />
</code></pre></p>
<p>Now:</p>
<pre lang="rego"><code>package example
<p>import future.keywords.and<br />
import future.keywords.or</p>
<h1>the and groups first, so this reads as:</h1>
<h1>an admin, or an owner of a public resource</h1>
<p>allow if {<br />
&lt;/tr&gt;&lt;/table&gt;<br />
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/open-policy-agent/opa/commit/72f30d678c4fc1ff1eef8b5f11b1220761d16d0b"><code>72f30d6</code></a> Prepare v1.20.1 release</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/ceb4bf270a2e1a4032d6c38584c29f44979f034a"><code>ceb4bf2</code></a> ast: fix panic comparing a decimal zero with a non-integral number (<a href="https://redirect.github.com/open-policy-agent/opa/issues/9099">#9099</a>)</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/328ca09af0305c765952364a71860e2ab27eec87"><code>328ca09</code></a> Prepare v1.20.0 release (<a href="https://redirect.github.com/open-policy-agent/opa/issues/9095">#9095</a>)</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/ce7ab308f54999b173696df17d7b76cad46c6922"><code>ce7ab30</code></a> Add Scanara to the OPA ecosystem page. (<a href="https://redirect.github.com/open-policy-agent/opa/issues/9094">#9094</a>)</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/cbc09930ae1615244c172caf2f18d0a3df68f17c"><code>cbc0993</code></a> ast: Index rules with <code>and</code>/<code>or</code> expressions (<a href="https://redirect.github.com/open-policy-agent/opa/issues/9063">#9063</a>)</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/54bf3293debffa23bc34a386eabb493b97c8bb4d"><code>54bf329</code></a> fix loading absolute paths on Windows (<a href="https://redirect.github.com/open-policy-agent/opa/issues/9055">#9055</a>)</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/48310c63ac423eafe1c415da282583e268ce2eb8"><code>48310c6</code></a> format: Honor line breaks before explicit <code>and</code>/<code>or</code> operand bodies (<a href="https://redirect.github.com/open-policy-agent/opa/issues/9086">#9086</a>)</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/a3953de6a35ca6fe1d0b7012c98b57e3a5f15278"><code>a3953de</code></a> build/release: Create new release tool (<a href="https://redirect.github.com/open-policy-agent/opa/issues/8959">#8959</a>)</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/ec9536cac3a202f29fa64d3c7307dc3c3092429a"><code>ec9536c</code></a> format: converge object comprehension layout (<a href="https://redirect.github.com/open-policy-agent/opa/issues/9076">#9076</a>)</li>
<li><a href="https://github.com/open-policy-agent/opa/commit/255adec0bcaff87f2fe7d4be8b52a765682d0f1c"><code>255adec</code></a> ast: Fix <code>future.keywords</code> wildcard import not including the <code>not</code> keyword (#...</li>
<li>Additional commits viewable in <a href="https://github.com/open-policy-agent/opa/compare/v1.19.0...v1.20.1">compare view</a></li>
</ul>
</details>
<br />

![Dependabot compatibility score](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR

  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it

  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency

  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)

  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)

  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • </details>

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: jterry75 Review duration: 986m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2918"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%