-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not compatible with self-hosted runners ? #2
Comments
That's odd. Thank you for the feedback! Indeed, it wasn't tested with self hosted runners, but I don't think there is a difference... There is a 10 sec timeout in actions-permissions/monitor/setup.sh Lines 93 to 103 in 5802518
Not sure if this is the place where it sometimes fails and the timeout has to be increased. You can try rerunning the workflow with debug logging enabled. The proxy intercepts everything that is sent to ports 80 and 443 actions-permissions/monitor/setup.sh Lines 120 to 123 in 5802518
But it bails out early if the request is not to github.com or doesn't contain token_id actions-permissions/monitor/mitm_plugin.py Lines 535 to 542 in 5802518
There can be an issue with a tool if there is a certificate pinning in place. I'll try to reproduce with the hashicorp action. If you can provide a simplified workflow for reproduction I would be grateful. |
I think the timeout you mentioned is purely in the setup, when it creates its own CA etc... I think my issue was purely when the request was going through the proxy, it's a bit hit and miss 🤔 |
I discovered one issue with self-hosted is permissions, I disabled the timeout and found that the ca file was there, but since the user the runner was running as couldn't see it, it didn't think it was there. I added a "sudo" in front of that check, i.e. actions-permissions/monitor/setup.sh Line 97 in 1eeeb2e
while sudo [ ! -f /home/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem ] Then it starts and finishes install just fine. However, when trying to run another action that had to install packages (black, to be specific) it said
The file definitely does exist and it confirmed itself that it was a permissions error at the end
This is on Ubuntu Jammy 22.04 on AWS |
I wanted to try the action, but a few weird bugs showed up. I was surprised to see mitmproxy used !
Sometimes the setup-python action fails completely, not sure if it's the proxy that is causing the timeout, I'm not sure what's the scope of the mitmproxy, I guess it's intercepting everything.
And sometimes, the python setup works, but then it fails with the hashicorp vault action (probably a good thing, but I'm not quite sure how their client is accepting the certificate from mitmproxy...)
The text was updated successfully, but these errors were encountered: