Unity - Package Manager - Private GitHub Repository
情境
想分享私有庫但又不想去更改團隊或人員權限,Github 提供 Fine-Grained Token 能做到客製化的權限控制
操作
- 至 GitHub «帳戶設定»(非儲存庫設定)
- Developer Settings -> Personal Access Tokens -> Fine-Grained Tokens
- 生成 Token (Read-Only Permission for the repo Content).
"com.yourusername.yourpackage": "git+https://x-oauth-basic:<token>@<repo>?path=<folder>"