Skip to content

Commit

Permalink
Bump github.com/google/cel-go from 0.20.1 to 0.21.0 in the go group (#…
Browse files Browse the repository at this point in the history
…135)

Bumps the go group with 1 update:
[github.com/google/cel-go](https://github.com/google/cel-go).

Updates `github.com/google/cel-go` from 0.20.1 to 0.21.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/google/cel-go/releases">github.com/google/cel-go's
releases</a>.</em></p>
<blockquote>
<h2>Release v0.21.0</h2>
<h2>Features</h2>
<ul>
<li>Math extensions update to include bitwise ops and floating point
helpers <a
href="https://redirect.github.com/google/cel-go/issues/923">#923</a></li>
<li>Better support custom types with custom type registries <a
href="https://redirect.github.com/google/cel-go/issues/931">#931</a></li>
<li>repl: implement %parse <a
href="https://redirect.github.com/google/cel-go/issues/933">#933</a></li>
<li>Fixed partial variables extended bug and split
PartialVarsEnvExtended test into two <a
href="https://redirect.github.com/google/cel-go/issues/955">#955</a></li>
<li>Added partial evaluations example <a
href="https://redirect.github.com/google/cel-go/issues/959">#959</a></li>
<li>Enable conformance tests for extensions <a
href="https://redirect.github.com/google/cel-go/issues/930">#930</a></li>
<li>Update cel-spec and enable optional_type conformance tests <a
href="https://redirect.github.com/google/cel-go/issues/919">#919</a></li>
<li>Improve token representation in AST <a
href="https://redirect.github.com/google/cel-go/issues/932">#932</a></li>
<li>Add function accessor to Env <a
href="https://redirect.github.com/google/cel-go/issues/978">#978</a></li>
</ul>
<h3>CEL Policy Compiler</h3>
<p>Policies which use CEL often evolve to express complex logic using
multiple statements
and decision criteria. The CEL Policy Compiler provides an extensible
format for parsing,
compiling, and composing expression graphs. Below is a simple example
which can easily
be compiled to a single CEL expression.</p>
<pre lang="yaml"><code>name: &quot;my-policy&quot;
rule:
  variables:
    - name: greeting
      expression: &quot;'%s, %s!'&quot;
    - name: people
      expression: &gt;
       ['Tristan', 'Calla', 'Antoine', 'Jonathan', 'Sokwhan', 'Rebecca']
  match:
    - condition: &quot;request.user in variables.people&quot;
output: &quot;variables.greeting.format(['hello', request.user])&quot;
- output: &quot;variables.greeting.format(['goodbye', 'stranger'])&quot;
</code></pre>
<ul>
<li>Simple Policy Compiler <a
href="https://redirect.github.com/google/cel-go/issues/924">#924</a></li>
<li>Introduce protobuf message testing to policies <a
href="https://redirect.github.com/google/cel-go/issues/961">#961</a></li>
<li>Generate policy explanations during compilation <a
href="https://redirect.github.com/google/cel-go/issues/977">#977</a></li>
<li>Variable and nested rule limits <a
href="https://redirect.github.com/google/cel-go/issues/989">#989</a></li>
<li>Improved support for nested rules <a
href="https://redirect.github.com/google/cel-go/issues/991">#991</a>]</li>
</ul>
<h2>Fixes</h2>
<ul>
<li>Delete dangling source info from macro expansion <a
href="https://redirect.github.com/google/cel-go/issues/934">#934</a></li>
<li>Do not re-use ID twice in <code>exists_one</code> macro <a
href="https://redirect.github.com/google/cel-go/issues/935">#935</a></li>
<li>Avoid iterating over the source multiple times during parse <a
href="https://redirect.github.com/google/cel-go/issues/936">#936</a></li>
<li>Fix for working with byte arrays by <a
href="https://redirect.github.com/google/cel-go/issues/958">#958</a></li>
<li>Stabilize macro id generation during optimization <a
href="https://redirect.github.com/google/cel-go/issues/962">#962</a></li>
<li>String formatting panic fix for non-literal format strings <a
href="https://redirect.github.com/google/cel-go/issues/987">#987</a></li>
<li>Add nil checking for wrapperspb's types <a
href="https://redirect.github.com/google/cel-go/issues/960">#960</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/google/cel-go/commit/3545aac7e6d484d3035b1833c4ade036c3f7bacb"><code>3545aac</code></a>
Improved support for nested rules (<a
href="https://redirect.github.com/google/cel-go/issues/991">#991</a>)</li>
<li><a
href="https://github.com/google/cel-go/commit/5bcdb8b52c864ca39243a1e31bb94a229f87394a"><code>5bcdb8b</code></a>
Check for output type agreement during the compile phase (<a
href="https://redirect.github.com/google/cel-go/issues/992">#992</a>)</li>
<li><a
href="https://github.com/google/cel-go/commit/1f51886b3e44f0868f57f345c791b86015cf5cd6"><code>1f51886</code></a>
Use bytes interface value for zero native type struct fields instead of
dynam...</li>
<li><a
href="https://github.com/google/cel-go/commit/c9164bce0933409afe4f340af5e9e22eb2879977"><code>c9164bc</code></a>
Variable and nested rule limits (<a
href="https://redirect.github.com/google/cel-go/issues/989">#989</a>)</li>
<li><a
href="https://github.com/google/cel-go/commit/5cbef66be0ac05f0a971456e3fa6df6e4cfd52a0"><code>5cbef66</code></a>
Prevent self-append for Issues (<a
href="https://redirect.github.com/google/cel-go/issues/988">#988</a>)</li>
<li><a
href="https://github.com/google/cel-go/commit/25457de41473a8cf0cea4fcdd418e97a8e0728b3"><code>25457de</code></a>
Add nil checking for wrapperspb's types (<a
href="https://redirect.github.com/google/cel-go/issues/960">#960</a>)</li>
<li><a
href="https://github.com/google/cel-go/commit/badfce05f4611f29e4e2188269b2038ab6c0d020"><code>badfce0</code></a>
Fix panic in formatting string for non-literal formats (<a
href="https://redirect.github.com/google/cel-go/issues/987">#987</a>)</li>
<li><a
href="https://github.com/google/cel-go/commit/9e64eb72233038f32a03aaa21719383c04217e53"><code>9e64eb7</code></a>
Decompose the compile and compose methods (<a
href="https://redirect.github.com/google/cel-go/issues/986">#986</a>)</li>
<li><a
href="https://github.com/google/cel-go/commit/37d5b961f5da8ca2a21ccb565af63faaf84ed2fa"><code>37d5b96</code></a>
Add a function to return a policy whose output is the explanation. (<a
href="https://redirect.github.com/google/cel-go/issues/977">#977</a>)</li>
<li><a
href="https://github.com/google/cel-go/commit/bc96f3b01f7d80a31f25e6008707117e0a8a1bb9"><code>bc96f3b</code></a>
Fix math.bitShiftRight for negative int (<a
href="https://redirect.github.com/google/cel-go/issues/983">#983</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/google/cel-go/compare/v0.20.1...v0.21.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/google/cel-go&package-manager=go_modules&previous-version=0.20.1&new-version=0.21.0)](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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Aug 5, 2024
1 parent ec23f34 commit 17a2e36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.34.2-20240717164558-a6c49f84cc0f.2
github.com/envoyproxy/protoc-gen-validate v1.0.4
github.com/google/cel-go v0.20.1
github.com/google/cel-go v0.21.0
github.com/stretchr/testify v1.9.0
google.golang.org/protobuf v1.34.2
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A=
github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew=
github.com/google/cel-go v0.20.1 h1:nDx9r8S3L4pE61eDdt8igGj8rf5kjYR3ILxWIpWNi84=
github.com/google/cel-go v0.20.1/go.mod h1:kWcIzTsPX0zmQ+H3TirHstLLf9ep5QTsZBN9u4dOYLg=
github.com/google/cel-go v0.21.0 h1:cl6uW/gxN+Hy50tNYvI691+sXxioCnstFzLp2WO4GCI=
github.com/google/cel-go v0.21.0/go.mod h1:rHUlWCcBKgyEk+eV03RPdZUekPp6YcJwV0FxuUksYxc=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
Expand Down

0 comments on commit 17a2e36

Please sign in to comment.