Need to access to mongodb atlas from github runner

I am running ui automated tests using github actions. My scripts require to connect to external db thats mongodb atlas. The db is authorized to allow connection from any IP. But the github runner is not allowing scripts to connect the db. Please suggest what i need to add to my github action yml to enable this . Thanks

Can you provide a more detailed error message, or a link to a public repo that shows the failed run of the workflow?