You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/agents/auth-expert.agent.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ You are an expert on Git hosting authentication across GitHub.com, GitHub Enterp
13
13
14
14
## Core Knowledge
15
15
16
-
-**Token types**: Fine-grained PATs (`github_pat_`), classic PATs (`ghp_`), EMU tokens (`ghu_`), OAuth tokens (`gho_`), server tokens (`ghs_`)
17
-
-**GitHub EMU constraints**: Enterprise-scoped, cannot access public github.com, `ghu_` prefix
16
+
-**Token prefixes**: Fine-grained PATs (`github_pat_`), classic PATs (`ghp_`), OAuth user-to-server (`ghu_` — e.g. `gh auth login`), OAuth app (`gho_`), GitHub App install (`ghs_`), GitHub App refresh (`ghr_`)
17
+
-**EMU (Enterprise Managed Users)**: Use standard PAT prefixes (`ghp_`, `github_pat_`). There is NO special prefix for EMU — it's a property of the account, not the token. EMU tokens are enterprise-scoped and cannot access public github.com repos. EMU orgs can exist on github.com or *.ghe.com.
18
18
-**Host classification**: github.com (public), *.ghe.com (no public repos), GHES (`GITHUB_HOST`), ADO
Copy file name to clipboardExpand all lines: docs/src/content/docs/getting-started/authentication.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,13 +57,13 @@ Per-org tokens take priority over global tokens. Use this when different orgs re
57
57
58
58
## Enterprise Managed Users (EMU)
59
59
60
-
EMU orgs can live on **github.com** (e.g., `contoso-microsoft`) or on **GHE Cloud Data Residency** (`*.ghe.com`). EMU tokens (`ghu_` prefix) are enterprise-scoped and cannot access public repos on github.com.
60
+
EMU orgs can live on **github.com** (e.g., `contoso-microsoft`) or on **GHE Cloud Data Residency** (`*.ghe.com`). EMU tokens are standard PATs (`ghp_` classic or `github_pat_` fine-grained) — there is no special prefix. They are scoped to the enterprise and cannot access public repos on github.com.
61
61
62
62
If your manifest mixes enterprise and public packages, use separate tokens:
export GITHUB_APM_PAT=ghp_public_token # public github.com repos
67
67
```
68
68
69
69
### GHE Cloud Data Residency (`*.ghe.com`)
@@ -128,7 +128,7 @@ Authorize your PAT for SSO at [github.com/settings/tokens](https://github.com/se
128
128
129
129
### EMU token can't access public repos
130
130
131
-
EMU tokens (`ghu_` prefix) are enterprise-scoped and cannot access public github.com repos. Use a standard PAT for public repos alongside your EMU token — see [Enterprise Managed Users (EMU)](#enterprise-managed-users-emu) above.
131
+
EMU PATs use standard prefixes (`ghp_`, `github_pat_`) — there is no EMU-specific prefix. They are enterprise-scoped and cannot access public github.com repos. Use a standard PAT for public repos alongside your EMU PAT — see [Enterprise Managed Users (EMU)](#enterprise-managed-users-emu) above.
132
132
133
133
### Diagnosing auth failures
134
134
@@ -138,7 +138,7 @@ Run with `--verbose` to see the full resolution chain:
138
138
apm install --verbose your-org/package
139
139
```
140
140
141
-
The output shows which env var matched (or `none`), the detected token type (`fine-grained`, `classic`, `emu`), and the host classification (`github`, `ghe_cloud`, `ghes`, `ado`, `generic`).
141
+
The output shows which env var matched (or `none`), the detected token type (`fine-grained`, `classic`, `oauth`, `github-app`), and the host classification (`github`, `ghe_cloud`, `ghes`, `ado`, `generic`).
0 commit comments