Read Time Out in Waiting for checks
We are getting this error when trying to push:
Waiting for status checks to finish for 'push-action/5028480720/26851-6198-25830' ...
ReadTimeout: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)
Waiting for status checks to finish for 'push-action/5028480720/26851-6198-25830' ... DONE!
which seems to come from this line:
https://github.com/CasperWA/push-protected/blob/051766a6a39c6776802d9285f7bbfcddac9d8b3c/entrypoint.sh#LL52C14-L52C20
There doesn't seem to be any error handling in the shell script (or maybe it should be in push-action?), is there any way to debug this?
I set 10 seconds as the default timeout time when waiting for a GH REST API request (see this line). This should be more than enough time. If this is not the case for you, check first that the GH services are not down (https://githubstatus.com) and then try to perform (and possibly time) any REST API call to the GH REST API:
To debug, I suggest to try and perform any REST API call using the credentials you would be using in the given job (if using GITHUB_TOKEN, then a personal access token with minimal access should do fine, but one that mirrors access granted a GITHUB_TOKEN would be better.
Here's some documentation on how to authenticate for calls to the REST API: https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28
Here's some documentation on the permissions for the GITHUB_TOKEN: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token