From fde88fb60334ea144a376f0721d4bc8de1bbca13 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jun 2026 13:22:47 +0000 Subject: [PATCH 1/3] Bump actions/checkout from 6 to 7 Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/bazel.yaml | 2 +- .github/workflows/buf-ci.yaml | 2 +- .github/workflows/ci.yaml | 4 ++-- .github/workflows/release.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bazel.yaml b/.github/workflows/bazel.yaml index 9dfc0c2e..b3d30dfc 100644 --- a/.github/workflows/bazel.yaml +++ b/.github/workflows/bazel.yaml @@ -16,7 +16,7 @@ jobs: matrix: type: [legacy, bzlmod] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: bazel-contrib/setup-bazel@0.19.0 with: bazelisk-cache: true diff --git a/.github/workflows/buf-ci.yaml b/.github/workflows/buf-ci.yaml index da02209c..7147f4c3 100644 --- a/.github/workflows/buf-ci.yaml +++ b/.github/workflows/buf-ci.yaml @@ -11,7 +11,7 @@ jobs: buf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: bufbuild/buf-action@v1 with: token: ${{ secrets.BUF_TOKEN }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 16876df2..24adaf86 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: name: Test and lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: actions/setup-go@v6 with: go-version-file: tools/go.mod @@ -25,7 +25,7 @@ jobs: name: Check generate runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@v7 - uses: bazel-contrib/setup-bazel@0.19.0 with: bazelisk-cache: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 09318e58..0d18d8a3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Create tag uses: actions/github-script@v9 From 87ec9859ab83e1c269ab62a8a07dc259b9cef3e5 Mon Sep 17 00:00:00 2001 From: Chris Roche Date: Mon, 6 Jul 2026 12:09:40 -0400 Subject: [PATCH 2/3] Pin actions/checkout v7 to commit SHA --- .github/workflows/bazel.yaml | 2 +- .github/workflows/buf-ci.yaml | 2 +- .github/workflows/ci.yaml | 4 ++-- .github/workflows/release.yaml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/bazel.yaml b/.github/workflows/bazel.yaml index b3d30dfc..2e5e9c97 100644 --- a/.github/workflows/bazel.yaml +++ b/.github/workflows/bazel.yaml @@ -16,7 +16,7 @@ jobs: matrix: type: [legacy, bzlmod] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 - uses: bazel-contrib/setup-bazel@0.19.0 with: bazelisk-cache: true diff --git a/.github/workflows/buf-ci.yaml b/.github/workflows/buf-ci.yaml index 7147f4c3..6777d068 100644 --- a/.github/workflows/buf-ci.yaml +++ b/.github/workflows/buf-ci.yaml @@ -11,7 +11,7 @@ jobs: buf: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 - uses: bufbuild/buf-action@v1 with: token: ${{ secrets.BUF_TOKEN }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 24adaf86..f12f2407 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: name: Test and lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 - uses: actions/setup-go@v6 with: go-version-file: tools/go.mod @@ -25,7 +25,7 @@ jobs: name: Check generate runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 - uses: bazel-contrib/setup-bazel@0.19.0 with: bazelisk-cache: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0d18d8a3..7b73209c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v7 + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 - name: Create tag uses: actions/github-script@v9 From bbac08ed65481dd7e9257dccd1a79fe5c4c30878 Mon Sep 17 00:00:00 2001 From: Chris Roche Date: Mon, 6 Jul 2026 12:15:37 -0400 Subject: [PATCH 3/3] Reformat protos with buf 1.71.0 --- .../validate/conformance/cases/enums.proto | 8 +--- .../conformance/cases/kitchen_sink.proto | 12 +---- .../validate/conformance/cases/messages.proto | 12 ++--- .../validate/conformance/cases/numbers.proto | 48 +++++-------------- .../validate/conformance/cases/repeated.proto | 36 ++++---------- .../validate/conformance/cases/wkt_any.proto | 24 +++------- .../conformance/cases/wkt_duration.proto | 8 ++-- .../conformance/cases/wkt_field_mask.proto | 8 +--- 8 files changed, 38 insertions(+), 118 deletions(-) diff --git a/proto/protovalidate-testing/buf/validate/conformance/cases/enums.proto b/proto/protovalidate-testing/buf/validate/conformance/cases/enums.proto index 09d98da1..a7275290 100644 --- a/proto/protovalidate-testing/buf/validate/conformance/cases/enums.proto +++ b/proto/protovalidate-testing/buf/validate/conformance/cases/enums.proto @@ -75,14 +75,10 @@ message EnumAliasIn { } message EnumNotIn { - TestEnum val = 1 [(buf.validate.field).enum = { - not_in: [1] - }]; + TestEnum val = 1 [(buf.validate.field).enum = {not_in: [1]}]; } message EnumAliasNotIn { - TestEnumAlias val = 1 [(buf.validate.field).enum = { - not_in: [1] - }]; + TestEnumAlias val = 1 [(buf.validate.field).enum = {not_in: [1]}]; } message EnumExternal { diff --git a/proto/protovalidate-testing/buf/validate/conformance/cases/kitchen_sink.proto b/proto/protovalidate-testing/buf/validate/conformance/cases/kitchen_sink.proto index 00ba7845..aed33682 100644 --- a/proto/protovalidate-testing/buf/validate/conformance/cases/kitchen_sink.proto +++ b/proto/protovalidate-testing/buf/validate/conformance/cases/kitchen_sink.proto @@ -48,16 +48,8 @@ message ComplexTestMsg { ] }]; ComplexTestEnum enum_const = 11 [(buf.validate.field).enum.const = 2]; - google.protobuf.Any any_val = 12 [(buf.validate.field).any = { - in: ["type.googleapis.com/google.protobuf.Duration"] - }]; - repeated google.protobuf.Timestamp rep_ts_val = 13 [(buf.validate.field).repeated = { - items: { - timestamp: { - gte: {nanos: 1000000} - } - } - }]; + google.protobuf.Any any_val = 12 [(buf.validate.field).any = {in: ["type.googleapis.com/google.protobuf.Duration"]}]; + repeated google.protobuf.Timestamp rep_ts_val = 13 [(buf.validate.field).repeated = {items: {timestamp: {gte: {nanos: 1000000}}}}]; map map_val = 14 [(buf.validate.field).map.keys.sint32.lt = 0]; bytes bytes_val = 15 [(buf.validate.field).bytes.const = "\x00\x99"]; oneof o { diff --git a/proto/protovalidate-testing/buf/validate/conformance/cases/messages.proto b/proto/protovalidate-testing/buf/validate/conformance/cases/messages.proto index e97d51e2..f20a1f82 100644 --- a/proto/protovalidate-testing/buf/validate/conformance/cases/messages.proto +++ b/proto/protovalidate-testing/buf/validate/conformance/cases/messages.proto @@ -55,9 +55,7 @@ message MessageRequiredOneof { message MessageWith3dInside {} message MessageOneofSingleField { - option (buf.validate.message).oneof = { - fields: ["str_field"] - }; + option (buf.validate.message).oneof = {fields: ["str_field"]}; string str_field = 1; bool bool_field = 2; } @@ -115,9 +113,7 @@ message MessageOneofMultipleSharedFields { } message MessageOneofUnknownFieldName { - option (buf.validate.message).oneof = { - fields: ["xxx"] - }; + option (buf.validate.message).oneof = {fields: ["xxx"]}; string str_field = 1; } @@ -134,9 +130,7 @@ message MessageOneofDuplicateField { } message MessageOneofZeroFields { - option (buf.validate.message).oneof = { - fields: [] - }; + option (buf.validate.message).oneof = {fields: []}; string str_field = 1; bool bool_field = 2; } diff --git a/proto/protovalidate-testing/buf/validate/conformance/cases/numbers.proto b/proto/protovalidate-testing/buf/validate/conformance/cases/numbers.proto index a169f893..e7a16e8a 100644 --- a/proto/protovalidate-testing/buf/validate/conformance/cases/numbers.proto +++ b/proto/protovalidate-testing/buf/validate/conformance/cases/numbers.proto @@ -33,9 +33,7 @@ message FloatIn { }]; } message FloatNotIn { - float val = 1 [(buf.validate.field).float = { - not_in: [0] - }]; + float val = 1 [(buf.validate.field).float = {not_in: [0]}]; } message FloatLT { float val = 1 [(buf.validate.field).float.lt = 0]; @@ -112,9 +110,7 @@ message DoubleIn { }]; } message DoubleNotIn { - double val = 1 [(buf.validate.field).double = { - not_in: [0] - }]; + double val = 1 [(buf.validate.field).double = {not_in: [0]}]; } message DoubleLT { double val = 1 [(buf.validate.field).double.lt = 0]; @@ -191,9 +187,7 @@ message Int32In { }]; } message Int32NotIn { - int32 val = 1 [(buf.validate.field).int32 = { - not_in: [0] - }]; + int32 val = 1 [(buf.validate.field).int32 = {not_in: [0]}]; } message Int32LT { int32 val = 1 [(buf.validate.field).int32.lt = 0]; @@ -264,9 +258,7 @@ message Int64In { }]; } message Int64NotIn { - int64 val = 1 [(buf.validate.field).int64 = { - not_in: [0] - }]; + int64 val = 1 [(buf.validate.field).int64 = {not_in: [0]}]; } message Int64LT { int64 val = 1 [(buf.validate.field).int64.lt = 0]; @@ -362,9 +354,7 @@ message UInt32In { }]; } message UInt32NotIn { - uint32 val = 1 [(buf.validate.field).uint32 = { - not_in: [0] - }]; + uint32 val = 1 [(buf.validate.field).uint32 = {not_in: [0]}]; } message UInt32LT { uint32 val = 1 [(buf.validate.field).uint32.lt = 5]; @@ -435,9 +425,7 @@ message UInt64In { }]; } message UInt64NotIn { - uint64 val = 1 [(buf.validate.field).uint64 = { - not_in: [0] - }]; + uint64 val = 1 [(buf.validate.field).uint64 = {not_in: [0]}]; } message UInt64LT { uint64 val = 1 [(buf.validate.field).uint64.lt = 5]; @@ -508,9 +496,7 @@ message SInt32In { }]; } message SInt32NotIn { - sint32 val = 1 [(buf.validate.field).sint32 = { - not_in: [0] - }]; + sint32 val = 1 [(buf.validate.field).sint32 = {not_in: [0]}]; } message SInt32LT { sint32 val = 1 [(buf.validate.field).sint32.lt = 0]; @@ -581,9 +567,7 @@ message SInt64In { }]; } message SInt64NotIn { - sint64 val = 1 [(buf.validate.field).sint64 = { - not_in: [0] - }]; + sint64 val = 1 [(buf.validate.field).sint64 = {not_in: [0]}]; } message SInt64LT { sint64 val = 1 [(buf.validate.field).sint64.lt = 0]; @@ -653,9 +637,7 @@ message Fixed32In { }]; } message Fixed32NotIn { - fixed32 val = 1 [(buf.validate.field).fixed32 = { - not_in: [0] - }]; + fixed32 val = 1 [(buf.validate.field).fixed32 = {not_in: [0]}]; } message Fixed32LT { fixed32 val = 1 [(buf.validate.field).fixed32.lt = 5]; @@ -726,9 +708,7 @@ message Fixed64In { }]; } message Fixed64NotIn { - fixed64 val = 1 [(buf.validate.field).fixed64 = { - not_in: [0] - }]; + fixed64 val = 1 [(buf.validate.field).fixed64 = {not_in: [0]}]; } message Fixed64LT { fixed64 val = 1 [(buf.validate.field).fixed64.lt = 5]; @@ -799,9 +779,7 @@ message SFixed32In { }]; } message SFixed32NotIn { - sfixed32 val = 1 [(buf.validate.field).sfixed32 = { - not_in: [0] - }]; + sfixed32 val = 1 [(buf.validate.field).sfixed32 = {not_in: [0]}]; } message SFixed32LT { sfixed32 val = 1 [(buf.validate.field).sfixed32.lt = 0]; @@ -872,9 +850,7 @@ message SFixed64In { }]; } message SFixed64NotIn { - sfixed64 val = 1 [(buf.validate.field).sfixed64 = { - not_in: [0] - }]; + sfixed64 val = 1 [(buf.validate.field).sfixed64 = {not_in: [0]}]; } message SFixed64LT { sfixed64 val = 1 [(buf.validate.field).sfixed64.lt = 0]; diff --git a/proto/protovalidate-testing/buf/validate/conformance/cases/repeated.proto b/proto/protovalidate-testing/buf/validate/conformance/cases/repeated.proto index 77876a26..9477fb1c 100644 --- a/proto/protovalidate-testing/buf/validate/conformance/cases/repeated.proto +++ b/proto/protovalidate-testing/buf/validate/conformance/cases/repeated.proto @@ -93,19 +93,13 @@ message RepeatedItemNotIn { }]; } message RepeatedEnumIn { - repeated AnEnum val = 1 [(buf.validate.field).repeated.items.enum = { - in: [0] - }]; + repeated AnEnum val = 1 [(buf.validate.field).repeated.items.enum = {in: [0]}]; } message RepeatedEnumNotIn { - repeated AnEnum val = 1 [(buf.validate.field).repeated.items.enum = { - not_in: [0] - }]; + repeated AnEnum val = 1 [(buf.validate.field).repeated.items.enum = {not_in: [0]}]; } message RepeatedEmbeddedEnumIn { - repeated AnotherInEnum val = 1 [(buf.validate.field).repeated.items.enum = { - in: [0] - }]; + repeated AnotherInEnum val = 1 [(buf.validate.field).repeated.items.enum = {in: [0]}]; enum AnotherInEnum { ANOTHER_IN_ENUM_UNSPECIFIED = 0; ANOTHER_IN_ENUM_A = 1; @@ -113,9 +107,7 @@ message RepeatedEmbeddedEnumIn { } } message RepeatedEmbeddedEnumNotIn { - repeated AnotherNotInEnum val = 1 [(buf.validate.field).repeated.items.enum = { - not_in: [0] - }]; + repeated AnotherNotInEnum val = 1 [(buf.validate.field).repeated.items.enum = {not_in: [0]}]; enum AnotherNotInEnum { ANOTHER_NOT_IN_ENUM_UNSPECIFIED = 0; ANOTHER_NOT_IN_ENUM_A = 1; @@ -123,20 +115,14 @@ message RepeatedEmbeddedEnumNotIn { } } message RepeatedAnyIn { - repeated google.protobuf.Any val = 1 [(buf.validate.field).repeated.items.any = { - in: ["type.googleapis.com/google.protobuf.Duration"] - }]; + repeated google.protobuf.Any val = 1 [(buf.validate.field).repeated.items.any = {in: ["type.googleapis.com/google.protobuf.Duration"]}]; } message RepeatedAnyNotIn { - repeated google.protobuf.Any val = 1 [(buf.validate.field).repeated.items.any = { - not_in: ["type.googleapis.com/google.protobuf.Timestamp"] - }]; + repeated google.protobuf.Any val = 1 [(buf.validate.field).repeated.items.any = {not_in: ["type.googleapis.com/google.protobuf.Timestamp"]}]; } message RepeatedMinAndItemLen { repeated string val = 1 [(buf.validate.field).repeated = { - items: { - string: {len: 3} - } + items: {string: {len: 3}} min_items: 1 }]; } @@ -147,13 +133,7 @@ message RepeatedMinAndMaxItemLen { ]; } message RepeatedDuration { - repeated google.protobuf.Duration val = 1 [(buf.validate.field).repeated = { - items: { - duration: { - gte: {nanos: 1000000} - } - } - }]; + repeated google.protobuf.Duration val = 1 [(buf.validate.field).repeated = {items: {duration: {gte: {nanos: 1000000}}}}]; } message RepeatedExactIgnore { repeated uint32 val = 1 [ diff --git a/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_any.proto b/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_any.proto index 5fa6c65b..92ae9034 100644 --- a/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_any.proto +++ b/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_any.proto @@ -28,38 +28,26 @@ message AnyRequired { google.protobuf.Any val = 1 [(buf.validate.field).required = true]; } message AnyIn { - google.protobuf.Any val = 1 [(buf.validate.field).any = { - in: ["type.googleapis.com/google.protobuf.Duration"] - }]; + google.protobuf.Any val = 1 [(buf.validate.field).any = {in: ["type.googleapis.com/google.protobuf.Duration"]}]; } message AnyNotIn { - google.protobuf.Any val = 1 [(buf.validate.field).any = { - not_in: ["type.googleapis.com/google.protobuf.Timestamp"] - }]; + google.protobuf.Any val = 1 [(buf.validate.field).any = {not_in: ["type.googleapis.com/google.protobuf.Timestamp"]}]; } // The below messages should throw compilation errors due to incorrect types. message AnyWrongTypeScalar { - string val = 1 [(buf.validate.field).any = { - not_in: ["type.googleapis.com/google.protobuf.Timestamp"] - }]; + string val = 1 [(buf.validate.field).any = {not_in: ["type.googleapis.com/google.protobuf.Timestamp"]}]; } message AnyWrongTypeMessage { message WrongType { int32 val = 1; } - WrongType val = 1 [(buf.validate.field).any = { - not_in: ["type.googleapis.com/google.protobuf.Timestamp"] - }]; + WrongType val = 1 [(buf.validate.field).any = {not_in: ["type.googleapis.com/google.protobuf.Timestamp"]}]; } message AnyWrongTypeWrapper { - google.protobuf.Int32Value val = 1 [(buf.validate.field).any = { - not_in: ["type.googleapis.com/google.protobuf.Timestamp"] - }]; + google.protobuf.Int32Value val = 1 [(buf.validate.field).any = {not_in: ["type.googleapis.com/google.protobuf.Timestamp"]}]; } message AnyWrongTypeWKT { - google.protobuf.Timestamp val = 1 [(buf.validate.field).any = { - not_in: ["type.googleapis.com/google.protobuf.Timestamp"] - }]; + google.protobuf.Timestamp val = 1 [(buf.validate.field).any = {not_in: ["type.googleapis.com/google.protobuf.Timestamp"]}]; } diff --git a/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_duration.proto b/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_duration.proto index b9816ea7..556ea7bf 100644 --- a/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_duration.proto +++ b/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_duration.proto @@ -37,14 +37,12 @@ message DurationIn { google.protobuf.Duration val = 1 [(buf.validate.field).duration = { in: [ {seconds: 1}, - {nanos: 1000}] + {nanos: 1000} + ] }]; } message DurationNotIn { - google.protobuf.Duration val = 1 [(buf.validate.field).duration = { - not_in: [ - {}] - }]; + google.protobuf.Duration val = 1 [(buf.validate.field).duration = {not_in: [{}]}]; } message DurationLT { diff --git a/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_field_mask.proto b/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_field_mask.proto index e6f6571d..3923b21a 100644 --- a/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_field_mask.proto +++ b/proto/protovalidate-testing/buf/validate/conformance/cases/wkt_field_mask.proto @@ -27,9 +27,7 @@ message FieldMaskRequired { } message FieldMaskConst { - google.protobuf.FieldMask val = 1 [(buf.validate.field).field_mask.const = { - paths: ["a"] - }]; + google.protobuf.FieldMask val = 1 [(buf.validate.field).field_mask.const = {paths: ["a"]}]; } message FieldMaskIn { @@ -50,7 +48,5 @@ message FieldMaskNotIn { } message FieldMaskExample { - google.protobuf.FieldMask val = 1 [(buf.validate.field).field_mask.example = { - paths: ["a"] - }]; + google.protobuf.FieldMask val = 1 [(buf.validate.field).field_mask.example = {paths: ["a"]}]; }