Commit 839e00f
committed
ci: pass MODELS_PAT to ai-inference instead of GITHUB_TOKEN
The auto-injected GITHUB_TOKEN returns 403 (no body) from the GitHub
Models API on orgs that don't have Models enabled at the org level
(yao-pkg is on the free plan; the toggle isn't available). A
fine-grained PAT scoped only to account-level 'Models: Read'
authenticates as the user and works regardless of org policy.
See actions/ai-inference#155 for the same
symptom and fix. The new MODELS_PAT secret has the minimum possible
permission and no third-party trust — fundamentally different from
the OpenAI key it replaces.1 parent 80d4e90 commit 839e00f
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
| |||
0 commit comments