0

Context

I'm running github self-hosted runner check script from my codespace.

./run.sh --check --url https://github.com/$GITHUB_REPOSITORY --pat $SELF_HOSTED_RUNNER_PAT_TOKEN

Problem

The script fails on Internet Connection Check with ping command despite correct DNS resolution.

$ 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

Error

Ping api.github.com (0.0.0.0) failed with 'TimedOut'
Ping vstoken.actions.githubusercontent.com (0.0.0.0) failed with 'TimedOut'

Question

The same ping command works from my local network but somehow fails from codespaces? As if something was blocking ping.

Lukasz Dynowski
  • 11,169
  • 9
  • 81
  • 124

1 Answers1

0

Facts

  1. ping from the network of my Internet Service Provider to api.github.com works
  2. ping from github codespace's network to api.github.com time outs

Conclusions

The github's firewall MUST block ping's Internet Control Message Protocol packets for range of IP addresses assigned to github codespaces.

Lukasz Dynowski
  • 11,169
  • 9
  • 81
  • 124