Keycloak timing out

Hi all,

I’m working on setting up a Keycloak instance within GitHub Actions to test its integration with a web application. We’re using Cypress as the tester. Within this Action, Keycloak appears to be standing up properly; we’re making a few API requests within its Docker container that create a Realm and a test user- those work fine.

Here’s where things go wrong- Cypress can’t seem to reach the logout endpoint on Keycloak, the request is timing out. It’s trying to hit http://localhost:8080/auth/realms/${realm}/protocol/openid-connect/logout (with ${realm} filled in properly) but is timing out after 30 seconds.

Notably, following the same setup process (Docker with API requests to set up the realm and user) works 100% fine when doing these steps locally. Has anyone successfully spun up a KC Docker image in GitHub Actions before? Was there any weirdness you had to work around?

Any help is greatly appreciated.