1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-03-29 20:39:54 +02:00

Fix WOODPECKER_GRPC_VERIFY being ignored ()

This fixes 
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

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