Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/gh-webhook
/ authTokenForHost
Function
authTokenForHost
webhook/create_webhook.go:96–102 ·
view source on GitHub ↗
(host string)
Source
from the content-addressed store, hash-verified
94
}
95
96
func
authTokenForHost(host string) (string, error) {
97
token, _ := auth.TokenForHost(host)
98
if
token ==
""
{
99
return
""
, fmt.Errorf(
"gh auth token not found for host %q"
, host)
100
}
101
return
token, nil
102
}
Callers
1
NewCmdForward
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected