From 9f987155f35ea4a6575ddc397281de08f41930a0 Mon Sep 17 00:00:00 2001 From: praneeth-ovckd <141099880+praneeth-ovckd@users.noreply.github.com> Date: Tue, 1 Aug 2023 12:36:27 +0530 Subject: [PATCH] Fix WOODPECKER_GRPC_VERIFY being ignored (#2077) This fixes #2076 --- cmd/agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/agent/agent.go b/cmd/agent/agent.go index 246afec78..7b5ce3dc6 100644 --- a/cmd/agent/agent.go +++ b/cmd/agent/agent.go @@ -92,7 +92,7 @@ func run(c *cli.Context) error { var transport grpc.DialOption if c.Bool("grpc-secure") { - transport = grpc.WithTransportCredentials(grpccredentials.NewTLS(&tls.Config{InsecureSkipVerify: c.Bool("skip-insecure-grpc")})) + transport = grpc.WithTransportCredentials(grpccredentials.NewTLS(&tls.Config{InsecureSkipVerify: c.Bool("grpc-skip-insecure")})) } else { transport = grpc.WithTransportCredentials(insecure.NewCredentials()) }