Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1331625

Browse files
authored
Content qa (#1240)
* Updates after review* Updates* Update gitops-apps-dashboard.md* Update installation-options.md* Update monitor-applications.md* Update monitor-applications.md* Added conditions for user tokens* Update manage-pats.md
1 parent913690b commit1331625

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

‎_docs/administration/user-self-management/manage-pats.md‎

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ group: administration
55
toc:true
66
---
77

8-
9-
10-
8+
##Git user token management
119
As a user in Codefresh, you must authorize access to your Git provider accounts and authenticate Git-based actions from Codefresh clients, per provisioned GitOps Runtime. This is done through the Git user token, which is an access token unique to each user. For more details, including required scopes and how the Git user token differs from the Git Runtime token, see[Git tokens in Codefresh]({{site.baseurl}}/docs/security/git-tokens/).
1210

1311

@@ -28,16 +26,21 @@ If you have access to more than one GitOps Runtime in the same or in different a
2826
>**NOTE**
2927
For OAuth2, the administrator pre-configures the permissions and expiry date. Once you supply your credentials for authorization, you are automatically directed to the Git Personal Tokens page.
3028

31-
**Before you begin**
32-
29+
#####Before you begin
30+
{% if page.collection != site.gitops_collection %}
3331
Make sure you have:
3432
* For Bitbucket only, your Bitbucket account username
35-
* If needed, a_user access token_ from your Git provider with the required scopes
33+
* If needed, a_user access token_ from your Git provider with the required scopes:
3634
*[GitHub](#generate-github-user-access-tokens)
3735
*[GitLab](#generate-gitlab-user-access-tokens)
3836
*[Bitbucket](#generate-bitbucket-user-access-tokens)
37+
{% endif %}
38+
39+
{% if page.collection== site.gitops_collection %}
40+
* Make sure you have a_user access token_ with the required scopes for[GitHub](#generate-github-user-access-tokens)
41+
{% endif %}
3942

40-
**How to**
43+
#####How to
4144
1. In the Codefresh UI, on the toolbar, click your avatar, and then select**Git Personal Access Token**.
4245
1. Select the GitOps Runtime to authenticate to, and then click**Add Token**.
4346
1. Do as needed:
@@ -47,10 +50,13 @@ Make sure you have:
4750
1. Complete the verification if required, as when two-factor authentication is configured, for example.
4851
* For**Git user tokens**:
4952
1. Expand**Advanced authorization options**.
53+
{% if page.collection != site.gitops_collection %}
5054
1. For Bitbucket, enter your**Bitbucket username**.
55+
{% endif %}
5156
1. In the**Personal Access Token** field, paste the token you generated.
5257

53-
{% include
58+
{%
59+
include
5460
image.html
5561
lightbox="true"
5662
file="/images/runtime/gitops-user-authorize-runtime-access.png"
@@ -84,7 +90,8 @@ Have your Git user token handy
8490
* To delete, click**Delete Token**. The token is deleted and the**Add Token** button is displayed next to the Runtime.
8591
1. To turn off notifications, click the context menu at the right of the row with the Runtime and enable**Hide notifications**.
8692

87-
{% include
93+
{%
94+
include
8895
image.html
8996
lightbox="true"
9097
file="/images/runtime/gitops-user-disable-runtime-notifications.png"
@@ -94,7 +101,8 @@ caption="Disable notifications option for GitOps Runtimes"
94101
max-width="70%"
95102
%}
96103

97-
{% include
104+
{%
105+
include
98106
image.html
99107
lightbox="true"
100108
file="/images/runtime/gitops-indication-notification-disabled.png"
@@ -108,14 +116,15 @@ max-width="70%"
108116

109117
##Generate GitHub user access tokens
110118

111-
1. Log in to your GitHub or GitHub Enterprise account.
119+
1. Log in to your GitHub{% if page.collection != site.gitops_collection %}or GitHub Enterprise{% endif %} account.
112120
1. Select**Settings > Developer Settings > Personal Access Tokens > Tokens (classic)**.
113121
1. Define the following:
114122
* Token name
115123
* Expiration date
116124
* Select scope:`repo`
117125

118-
{% include
126+
{%
127+
include
119128
image.html
120129
lightbox="true"
121130
file="/images/administration/manage-pats/github-pat-scopes.png"
@@ -128,12 +137,9 @@ max-width="70%"
128137
{:start="4"}
129138
1. Copy the user access token generated as you will need it to authorize access.
130139

131-
{::nomarkdown}
132-
</br>
133-
{:/}
134140

141+
{% if page.collection != site.gitops_collection %}
135142
##Generate GitLab user access tokens
136-
137143
1. Log in to your GitLab Cloud or Server account.
138144
1. Select**User settings > Access tokens**.
139145
1. Define the following:
@@ -155,8 +161,6 @@ max-width="70%"
155161
1. Copy the user access token generated as you will need it to authorize access.
156162

157163
##Generate Bitbucket user access tokens
158-
159-
160164
1. Log in to your Bitbucket Cloud or Server account.
161165
1. Select**Personal Settings > App passwords**.
162166
1. Define the**Label**.
@@ -177,7 +181,7 @@ max-width="70%"
177181

178182
{:start="4"}
179183
1. Copy the user access token generated as you will need it to authorize access.
180-
184+
{% endif %}
181185

182186
##Related articles
183187
[Git tokens in Codefresh]({{site.baseurl}}/docs/security/git-tokens/)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp