You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the octokit client from the @actions/github library to make requests through an authenticated proxy, the user/password creds are not properly encoded in the Proxy-Authorization header.
When using the octokit client from the
@actions/github
library to make requests through an authenticated proxy, the user/password creds are not properly encoded in theProxy-Authorization
header.If I have an env var like the following:
And sniff the outgoing network request, I can see that the
Proxy-Authorization
header is set to the following:The correct value should be a base64-encoded basic auth value:
The issue is with the following line:
toolkit/packages/http-client/src/index.ts
Line 729 in faf9cb2
The
token
value being passed to theProxyAgent
is the un-encoded username/password pair. However, according to the documentation for theundici
library (https://undici.nodejs.org/#/docs/api/ProxyAgent?id=example-basic-proxy-request-with-authentication), the supplied token needs to be pre-encoded:The text was updated successfully, but these errors were encountered: