Open gm3dmo opened 1 week ago
The x-github-request-id
header is set on responses. If we cannot reach api.github.com
, we do not have the x-github-request-id
response header, or am I missing something?
There are 3 cases:
Many litres of tears and escalations may be saved with this precious knowledge.
For case 2.
, in case of a request error, it should log the full request + response (with credentials redacted), it's the standard @octokit behavior. Do you have an example build where actions/create-github-app-token
failed? It would be helpful to see logs
For case 1.
, we can add that if it's helpful, pull request welcome
For 3.
, a similar error should be logged as in 2.
, only lacking a response property
Would be nice if there was someway of logging the x-github-request-id header.
It would be helpful to have this in cases where the attempt to get a token from app/installations//access_tokens fails with a "Network Error" where it fails to reach api.github.com for some reason versus any case when GitHub.com is responding with an error.