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
On the other hand, the examples using GIT_AUTH_HEADER are wrong. According to the docs, it seems that both GIT_AUTH_TOKEN and GIT_AUTH_HEADER must be provided. The former with the username and password value, and the latter with a fixed "basic" value.
Hi!
I have found that the documentation regarding the usage of Git authentication secrets is not correct.
On the one hand, it says that "By default, Git authentication over HTTP uses the Bearer authentication scheme". But actually:
On the other hand, the examples using GIT_AUTH_HEADER are wrong. According to the docs, it seems that both GIT_AUTH_TOKEN and GIT_AUTH_HEADER must be provided. The former with the username and password value, and the latter with a fixed "basic" value.
However, looking at the code, either one of GIT_AUTH_TOKEN or GIT_AUTH_HEADER must be provided.
In summary, it would be really helpful if, in addition to fixing the instructions, docs really stated what is happening behind the scenes:
Authorization: basic x-access-token:<PROVIDED VALUE>(base64 encoded)
Authorization: <PROVIDED VALUE>
The text was updated successfully, but these errors were encountered: