emdgroup / foundry-dev-tools

Foundry DevTools
https://emdgroup.github.io/foundry-dev-tools/
Apache License 2.0
115 stars 21 forks source link

ConnectTimeout error using GitHub Actions #79

Open viola-m-li opened 5 days ago

viola-m-li commented 5 days ago

Issue checklist

Issue

Hi,

I have some code where I use Foundry DevTools to interact with the Foundry APIs. Additionally, I've written some tests using pytest. I set FoundryContext(token_provider=JWTTokenProvider()) by passing host and jwt as environment variables. This works fine locally, but when I run the tests as a workflow on GitHub, where I provide host and jwt as GitHub secrets, I get a ConnectTimeout error. The values are correctly read from the GitHub secrets. Is there anything else I need to consider when interacting with the Foundry APIs via GitHub Actions? What might be the reason this doesn't work?

Any help would be appreciated. Thanks!

nicornk commented 5 days ago

Most probably your Stack can only be reached from within the Company network or from specific IP ranges.