From c5cd9efb96729bae260ebc25267dd6007bc17f6a Mon Sep 17 00:00:00 2001 From: Dave Mihalcik Date: Thu, 3 Sep 2026 15:48:13 -0400 Subject: [PATCH] fix(cli): DSPX-4607 annotate deprecated Action.Value use in migration test golangci-lint v2.13.2 reports SA1019 for the deprecated policy.Action.Value oneof. This test deliberately exercises the legacy standard-action path, so annotate rather than migrate. Signed-off-by: Dave Mihalcik --- otdfctl/migrations/namespacedpolicy/resolved_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/otdfctl/migrations/namespacedpolicy/resolved_test.go b/otdfctl/migrations/namespacedpolicy/resolved_test.go index f00ec421d9..5f2bcb69bb 100644 --- a/otdfctl/migrations/namespacedpolicy/resolved_test.go +++ b/otdfctl/migrations/namespacedpolicy/resolved_test.go @@ -338,8 +338,9 @@ func TestResolveExistingRoutesStandardActionsByEnumRegardlessOfName(t *testing.T Actions: []*DerivedAction{ { Source: &policy.Action{ - Id: "legacy", - Name: "decrypt", + Id: "legacy", + Name: "decrypt", + //nolint:staticcheck // deliberately exercises the deprecated Action.Value oneof to reach the legacy standard-action path Value: &policy.Action_Standard{Standard: policy.Action_STANDARD_ACTION_DECRYPT}, }, Targets: []*policy.Namespace{namespace},