mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-07 08:51:16 +00:00
Trim space from agent token (#4465)
This commit is contained in:
@@ -133,7 +133,7 @@ func run(ctx context.Context, c *cli.Command, backends []types.Backend) error {
|
||||
|
||||
agentConfig := readAgentConfig(agentConfigPath)
|
||||
|
||||
agentToken := c.String("grpc-token")
|
||||
agentToken := strings.TrimSpace(c.String("grpc-token"))
|
||||
grpcClientCtx, grpcClientCtxCancel := context.WithCancelCause(context.Background())
|
||||
defer grpcClientCtxCancel(nil)
|
||||
authClient := agent_rpc.NewAuthGrpcClient(authConn, agentToken, agentConfig.AgentID)
|
||||
|
Reference in New Issue
Block a user