checkHost rejects a host that cannot serve the upload endpoint. IsEnterprise is false for ghe.com tenants, so data residency keeps working.
(host string)
| 62 | // checkHost rejects a host that cannot serve the upload endpoint. IsEnterprise |
| 63 | // is false for ghe.com tenants, so data residency keeps working. |
| 64 | func checkHost(host string) error { |
| 65 | if auth.IsEnterprise(host) { |
| 66 | return errors.New("attaching files is not supported on GitHub Enterprise Server") |
| 67 | } |
| 68 | return nil |
| 69 | } |
| 70 | |
| 71 | // uploadTokenTypes lists the credentials that can attach a file. Some GitHub |
| 72 | // App user-to-server tokens are supported, so the endpoint decides which. |
no outgoing calls