自建 GitHub Actions Runner 无法连接仓库怎么办?
我在公司内网搭了个 self-hosted runner,按官方文档配置好了,但一直连不上私有仓库。日志里反复报 Failed to connect to github.com port 443: Connection timed out,明明服务器能正常访问外网,curl https://github.com 也通。
试过重新生成 token、重启 runner 服务都不行。我的 config.sh 是这样配的:
./config.sh --url https://github.com/myorg/myrepo --token xxxxx
是不是内网有什么策略限制?还是我漏了什么步骤?
打工人耘博
Lv1
检查下防火墙或者代理设置,确保 runner 能访问 github.com 的所有相关端口,试试看。
点赞
2026-03-25 06:02