The token's prefix decides whether the uploader accepts it, so a row varies the prefix.
(token string)
| 2078 | // The token's prefix decides whether the uploader accepts it, so a row varies |
| 2079 | // the prefix. |
| 2080 | func uploadTokenConfig(token string) func() (gh.Config, error) { |
| 2081 | return uploadTokenConfigForHosts(map[string]string{"github.com": token}) |
| 2082 | } |
| 2083 | |
| 2084 | // A row can give the default host a different token from the host its base |
| 2085 | // repository resolves to. |
no test coverage detected