You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GitHub Codespace中ping api.github.com超时问题求助

背景信息

我在GitHub Codespace中运行GitHub自托管运行器检查脚本。

./run.sh --check --url https://github.com/$GITHUB_REPOSITORY --pat $SELF_HOSTED_RUNNER_PAT_TOKEN
问题描述

尽管DNS解析正常,但脚本在执行互联网连接检查时,ping命令失败。

$ nslookup api.github.com
Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
Name:   api.github.com
Address: 140.82.121.6

$ nslookup vstoken.actions.githubusercontent.com
Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
vstoken.actions.githubusercontent.com   canonical name = star-actions-githubusercontent-com.l-0007.l-msedge.net.
star-actions-githubusercontent-com.l-0007.l-msedge.net  canonical name = l-0007.l-msedge.net.
Name:   l-0007.l-msedge.net
Address: 13.107.42.16
Name:   l-0007.l-msedge.net
Address: 2620:1ec:21::16
错误信息
Ping api.github.com (0.0.0.0) failed with 'TimedOut'
Ping vstoken.actions.githubusercontent.com (0.0.0.0) failed with 'TimedOut'
求助问题

相同的ping命令在本地网络可正常执行,但在Codespace中却超时,疑似存在ping阻塞,恳请协助排查原因。

内容的提问来源于stack exchange,提问作者Lukasz Dynowski

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.30 22:57:20