Fix WOODPECKER_GRPC_VERIFY being ignored (#2077)

This fixes #2076
This commit is contained in:
praneeth-ovckd 2023-08-01 12:36:27 +05:30 committed by GitHub
parent e0ed1b3e49
commit 9f987155f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ func run(c *cli.Context) error {
var transport grpc.DialOption var transport grpc.DialOption
if c.Bool("grpc-secure") { 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 { } else {
transport = grpc.WithTransportCredentials(insecure.NewCredentials()) transport = grpc.WithTransportCredentials(insecure.NewCredentials())
} }