This is trivia when using Jenkins because we have an actual server in the cloud and it’s easy to config network access to our VPCs. But using Github Actions is a whole new story.
You’ll likely want to use a self-hosted runner. That should give you the same functionality as your Jenkins cloud server.