public-ip
public-ip copied to clipboard
Do you find that this action works to whitelist runner ips?
Right now, I'm getting IPs like 52.165.42.83
. I then whitelist in another step, and then have a lighthouse test in the next step.
Lighthouse then reports 403
which is what happens when the WAF denies rather than allows. Then googling around there seems to be different ways on how to properly whitelist GitHub Actions:
- public IP test
-
getting from github meta API call under
actions
. This is actually in the docs. - Not possible without using self-hosted runners. This is also in those same docs.
- Pulling from Azure's public docs that get updated. Mentioned by a partner in the forums.
Needless to say, I'm a bit confused as to what info is the latest and what actually works now.
I found this did work to whitelist runner IPs.
Hello @iDVB,
I'm sorry for the late response. I think the action works like expected. It returns the runner's public IP address. All you have to do is to use the tool that works with your target environment (Azure, AWS, etc.) and authorize the returned address by the action.
A reproduction repo / workflow is needed so I can help you.