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
{{ message }}
Repository navigation
Commit 0c3fc2b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/workflows/README.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,14 +43,22 @@ Agentic workflows authenticate through repository secrets:
43
43
| Secret / permission | Used for | Notes |
44
44
| --- | --- | --- |
45
45
|`COPILOT_GITHUB_TOKEN`| GitHub Copilot CLI (model inference) | Fine-grained PAT. **Preferably replaced** by the `copilot-requests: write` permission — see below. |
46
-
|`GH_AW_GITHUB_TOKEN`| GitHub MCP reads / safe-output writes that need more than the default `GITHUB_TOKEN`| Fine-grained PAT and the token that used to be forced by lockdown mode. **Preferably replaced** by a GitHub App — see below. |
46
+
|`GH_AW_GITHUB_TOKEN`| GitHub MCP reads / safe-output writes that need more than the default `GITHUB_TOKEN`| Fine-grained PAT and the token that used to be forced by lockdown mode. **Preferably replaced** by a GitHub App — see below. **Currently unset**: the compiler's token chain (`GH_AW_GITHUB_MCP_SERVER_TOKEN`\|\|`GH_AW_GITHUB_TOKEN`\|\|`GITHUB_TOKEN`) falls back to the per-run `GITHUB_TOKEN` when this secret is absent, so leave it unset unless a workflow needs elevated access. |
47
47
48
48
> [!IMPORTANT]
49
-
> **Fine-grained PATs expire and, under the `microsoft` org policy, may live at most ~1 week.**
50
-
> A PAT-based setup therefore breaks on a short cycle: when the token lapses, every workflow
51
-
> that depends on it fails at once and files a burst of `[aw] … failed` issues. Prefer the
52
-
> two PAT-free options below — together they let this repo run agentic workflows with **no
53
-
> long-lived PAT at all**.
49
+
> **Fine-grained PATs expire, and the `Microsoft Open Source` enterprise now hard-rejects any
50
+
> fine-grained PAT whose lifetime exceeds 8 days** (the API returns `403` with a message pointing
51
+
> at the token's settings page). A PAT-based setup therefore breaks on a short cycle: when the
52
+
> token lapses — or simply outlives the 8-day window — every workflow that depends on it fails at
53
+
> once (e.g. the `Checkout PR branch` step 403s on the collaborator-permission and PR lookups) and
54
+
> files a burst of `[aw] … failed` issues. Prefer the two PAT-free options below — together they
55
+
> let this repo run agentic workflows with **no long-lived PAT at all**.
0 commit comments