File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,14 @@ To authenticate towards a Git repository over HTTPS using bearer token
139
139
authentication (in other words : using a `Authorization: Bearer` header), the referenced
140
140
Secret is expected to contain the token in `.data.bearerToken`.
141
141
142
+ **Note:** If you are looking to use OAuth tokens with popular servers (e.g.
143
+ [GitHub](https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-with-a-token-generated-by-an-app),
144
+ [Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/),
145
+ [GitLab](https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html#clone-using-a-token)),
146
+ you should use basic access authentication instead. These servers use basic HTTP
147
+ authentication, with the OAuth token as the password. Check the documentation of
148
+ your Git server for details.
149
+
142
150
` ` ` yaml
143
151
---
144
152
apiVersion: v1
Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ To authenticate towards a Git repository over HTTPS using bearer token
140
140
authentication (in other words : using a `Authorization: Bearer` header), the referenced
141
141
Secret is expected to contain the token in `.data.bearerToken`.
142
142
143
+ **Note:** If you are looking to use OAuth tokens with popular servers (e.g.
144
+ [GitHub](https://docs.github.com/en/rest/overview/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-with-a-token-generated-by-an-app),
145
+ [Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/),
146
+ [GitLab](https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html#clone-using-a-token)),
147
+ you should use basic access authentication instead. These servers use basic HTTP
148
+ authentication, with the OAuth token as the password. Check the documentation of
149
+ your Git server for details.
150
+
143
151
` ` ` yaml
144
152
---
145
153
apiVersion: v1
You can’t perform that action at this time.
0 commit comments