GitHub API
curl "https://gh-proxy.cn/github/https://api.github.com/repos/cli/cli/releases/latest"
私有仓库 / 提高配额
Authorization、Accept、User-Agent 会被原样透传给 api.github.com:
curl -H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github+json" \
"https://gh-proxy.cn/github/https://api.github.com/user/repos"
安全说明
- Token 只在单次请求中转发给
api.github.com,不会被本站记录或存储。 - 只有白名单内的域名可以被代理,无法借助本服务访问任意主机。
- 使用 Token 时请自行确认其权限范围与过期时间。