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
this commit updates bitbucket cloud docs about
replacement of app passwords with api tokens and
adds a guide on how to create api token.
Signed-off-by: Zaki Shaikh <zashaikh@redhat.com>
Follow [this guide](https://support.atlassian.com/bitbucket-cloud/docs/create-an-api-token/) to create an API token.
16
14
17
15
Check these boxes to add the permissions to the token:
18
16
19
-
- Account: `Email`, `Read`
20
-
- Workspace membership: `Read`, `Write`
21
-
- Projects: `Read`, `Write`
22
-
- Issues: `Read`, `Write`
23
-
- Pull requests: `Read`, `Write`
24
-
25
-
**NOTE:** If you are going to configure webhook through CLI, you must also add additional permission
26
-
27
-
- Webhooks: `Read and write`
28
-
29
-
[Refer to this screenshot](/images/bitbucket-cloud-create-secrete.png) to verify
30
-
you have properly configured the app password.
17
+
-**read:workspace:bitbucket**
18
+
-**read:pullrequest:bitbucket**
19
+
-**read:repository:bitbucket**
20
+
-**write:repository:bitbucket**
31
21
32
22
Keep the generated token noted somewhere, or otherwise you will have to recreate it.
33
23
@@ -121,16 +111,15 @@ $ tkn pac create repo
121
111
spec:
122
112
url: "https://bitbucket.com/workspace/repo"
123
113
git_provider:
124
-
user: "yourbitbucketusername"
114
+
user: "your_atlassian_email_id"
125
115
secret:
126
116
name: "bitbucket-cloud-token"
127
117
# Set this if you have a different key in your secret
128
118
# key: “provider.token“
129
119
```
130
120
131
-
Please note that the workspace name is different from your username. To view your username in the Bitbucket UI, click on the settings icon, navigate to the
132
-
Personal Bitbucket Settings, and there you will find your username there, as shown in image below `zakisk-admin` is username:
133
-

121
+
Please note that you must use your Bitbucket/Atlassian account email address in the `user` field of the `Repository` CR. To find your email address, click on your profile icon at the top-left corner in the Bitbucket Cloud UI (see image below), go to **Account Settings**, and scroll down to locate your email address.
0 commit comments