diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 1b18f41605..bf75188f93 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -15,6 +15,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v8.0.0 with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v2.1.6 + version: v2.3.0 args: --timeout 5m diff --git a/internal/services/function/helpers_function.go b/internal/services/function/helpers_function.go index ae3db47b7e..fd4ed43caa 100644 --- a/internal/services/function/helpers_function.go +++ b/internal/services/function/helpers_function.go @@ -73,7 +73,7 @@ func functionUpload(ctx context.Context, m any, functionAPI *function.API, regio } defer zip.Close() //nolint: errcheck - req, err := http.NewRequest(http.MethodPut, uploadURL.URL, zip) + req, err := http.NewRequestWithContext(ctx, http.MethodPut, uploadURL.URL, zip) if err != nil { return fmt.Errorf("failed to init request: %w", err) }