From eb2c3fb4e6be6febc45b782a0bb80f4cefc48fe2 Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Thu, 21 Sep 2023 13:28:43 +0700 Subject: [PATCH 1/2] ci: bump golangci-lint to v1.54 --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9cea6ba..e1daf41 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,6 +27,6 @@ jobs: cache-dependency-path: go.sum - uses: golangci/golangci-lint-action@v3 with: - version: v1.48 + version: v1.54 skip-cache: true args: --timeout 10m --verbose From 24847c3a16b7377a3643768c14d319842faea73d Mon Sep 17 00:00:00 2001 From: Nikita Pivkin Date: Thu, 21 Sep 2023 14:17:34 +0700 Subject: [PATCH 2/2] fix linter issue --- internal/adapters/lambda/adapt_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/adapters/lambda/adapt_test.go b/internal/adapters/lambda/adapt_test.go index 1785929..fa0114c 100644 --- a/internal/adapters/lambda/adapt_test.go +++ b/internal/adapters/lambda/adapt_test.go @@ -124,14 +124,15 @@ func bootstrapFunction(t *testing.T, ra *adapters.RootAdapter, spec functionDeta require.NoError(t, err) for i, permission := range spec.permissions { + perm := permission statementID := fmt.Sprintf("%d", i) _, err = api.AddPermission(ra.Context(), &lambdaapi.AddPermissionInput{ - Action: &permission.action, + Action: &perm.action, FunctionName: &spec.name, Qualifier: output.Version, - Principal: &permission.principal, + Principal: &perm.principal, StatementId: &statementID, - SourceArn: &permission.source, + SourceArn: &perm.source, }) require.NoError(t, err) }