Fix WOODPECKER_GRPC_VERIFY being ignored (#2077) (#2082)

Backports (#2077)
This commit is contained in:
praneeth-ovckd
2023-08-01 18:04:52 +05:30
committed by GitHub
parent 0f91475532
commit dd55261703

View File

@@ -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())
}