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

Commit64bf6a2

Browse files
Integration token (#262)
* adding level of access* added level of access for for cloning a repo* .* small changes
1 parent24cb492 commit64bf6a2

File tree

2 files changed

+33
-27
lines changed

2 files changed

+33
-27
lines changed

‎_data/nav.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@
381381
-title:Integrations
382382
url:"/integrations"
383383
pages:
384-
-title:Gitproviders
384+
-title:GitProviders
385385
url:"/git-providers"
386386
-title:Kubernetes
387387
url:"/kubernetes"

‎_docs/integrations/git-providers.md‎

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title:"Gitproviders"
2+
title:"GitProviders"
33
description:"Easily checkout code in your pipelines"
44
group:integrations
55
redirect_from:
@@ -14,7 +14,7 @@ Creating an account with Codefresh using one of the supported Git providers (Git
1414

1515
You can add repositories from the other git providers regardless of the one that you used for sign-up. For example, you can use GitLab to sign up with Codefresh, but still build repositories that exist in Bitbucket.
1616

17-
You can even add multiple accounts from each Git provider (if you have more than one) allowing you to use Codefresh as a central CI/CD solution that can access all yourgit repositories regardless of the backinggit provider.
17+
You can even add multiple accounts from each Git provider (if you have more than one) allowing you to use Codefresh as a central CI/CD solution that can access all yourGit repositories regardless of the backingGit provider.
1818

1919
Currently Codefresh supports:
2020

@@ -27,31 +27,31 @@ Currently Codefresh supports:
2727
* Atlassian Stash (old version of Bibucket Server)
2828
* Bitbucket Server (new version of Stash)
2929

30-
Atlassian Stash/Bitbucket server as well as the on-premises version ofGiTlab and GitHub are only available to Codefresh enterprise customers.
30+
Atlassian Stash/Bitbucket server as well as the on-premises version ofGitLab and GitHub are only available to Codefresh enterprise customers.
3131

3232

33-
##Adding moreGIT providers to your Codefreshaccount.
33+
##Adding moreGit providers to your CodefreshAccount
3434

35-
By default, you have direct access togit repositories that exist in theGIT provider that you used while signing up for Codefresh. You can easily create Codefresh projects that checkout code from thatGIT provider without any extra configurations.
35+
By default, you have direct access toGit repositories that exist in theGit provider that you used while signing up for Codefresh. You can easily create Codefresh projects that checkout code from thatGit provider without any extra configurations.
3636

37-
To add additionalGIT providers, go to your Account Configuration, by clicking on*Account Settings* on the left sidebar. On the first section called*Integrations* click the*Configure* button next to*Git providers*.
37+
To add additionalGit providers, go to your Account Configuration, by clicking on*Account Settings* on the left sidebar. On the first section called*Integrations* click the*Configure* button next to*Git providers*.
3838

3939
{% include image.html lightbox="true" file="/images/integrations/codefresh-integrations.png" url="/images/integrations/codefresh-integrations.png" alt="Codefresh Account Integration" max-width="80%" %}
4040

41-
You can add a newgit provider using the*Add Git provider* drop-down.
41+
You can add a newGit provider using the*Add Git provider* drop-down.
4242

4343
{% include image.html
4444
lightbox="true"
4545
file="/images/integrations/git/git-provider-menu.png"
4646
url="/images/integrations/git/git-provider-menu.png"
4747
max-width="60%"
48-
caption="AddGIT provider"
49-
alt="AddGIT provider"
48+
caption="AddGit provider"
49+
alt="AddGit provider"
5050
%}
5151

52-
For eachgit provider you need to setup authentication, so Codefresh can get access to the public and private repositories of the respective platform.
52+
For eachGit provider you need to setup authentication, so Codefresh can get access to the public and private repositories of the respective platform.
5353

54-
The easiest way to setup authentication is with OAuth2 if supported by thegit provider. You only need to name your integration
54+
The easiest way to setup authentication is with OAuth2 if supported by theGit provider. You only need to name your integration
5555
and Codefresh will automatically set it up once you accept the permissions required. If you have problems with OAuth2
5656
or the provider does not support it, you need to manually create credentials by yourself in your git account and then enter them into Codefresh.
5757

@@ -87,7 +87,7 @@ you used GitHub when you [created your Codefresh account]({{site.baseurl}}/docs/
8787

8888
For the**Access Token** method you need
8989

90-
* A friendly name for thegit context (it can be anything you want)
90+
* A friendly name for theGit context (it can be anything you want)
9191
* An access token
9292

9393
>Note that the access token for an organization should be created by somebody who has**Owner** role and not just**Member** role.
@@ -97,7 +97,7 @@ sidebar. Then select *Personal access tokens* from the left menu.
9797
For more information see the[GitHub Documentation page](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/){:target="_blank"}
9898

9999
The "token description" you enter in your GitHub account in order to create the token is completely arbitrary (use "Codefresh" for an example). Once you have the token, paste it in the Codefresh UI and click*Test connection*. If everything is OK, you can
100-
now save thegit integration.
100+
now save theGit integration.
101101

102102
The minimum permissions for the token are:
103103
-`repo.*`
@@ -115,15 +115,21 @@ alt="GitHub permissions"
115115
For GitHub on-premises you also need to provide the URL of the GitHub server in your organization. If enabled in your account you can setup[Pipeline definition restrictions]({{site.baseurl}}/docs/administration/access-control/#pipeline-definition-restrictions) by expanding the*YAML Options* segment.
116116

117117

118-
###Usingexternal secrets for thetoken
118+
###UsingExternal Secrets for theToken
119119

120120
If your GitHub installation is behind your firewall, you can also
121121
use any[external secrets that you have defined]({{site.baseurl}}/docs/integrations/secret-storage/) (such as Kubernetes secrets) as values by entering a secrets value
122122
with the same syntax[shown in pipelines]({{site.baseurl}}/docs/configure-ci-cd-pipeline/secrets-store/).
123123

124124
For example if you already have a`token` on a resource call`git-credentials` you can put in the token field the expression {% raw %}`${{secrets.git-credentials.token}}`{% endraw %}.
125125

126+
###Level of Access
127+
When the admin clicks off "Allow access to all users" another toggle appears; “Allow these credentials to be shared within a pipeline for cloning a repository“
128+
1. When its turned on, the user that runs a pipeline will be able to clone the repo.
129+
2. When its turned off, the user that runs a pipeline cannot use this integration.
130+
In both cases, the user cannot decrypt the token used in Git integration with CLI or API.
126131

132+
>Important note: The credentials will be shared only to clone repos using an official git-clone step.
127133
128134
##GitHub-App
129135

@@ -157,7 +163,7 @@ Also from the URL of the browser note the ending number (this is your installati
157163
For the required fields use:
158164

159165
***Installation id** - found in step 5
160-
***Appid** - found in step 3
166+
***AppID** - found in step 3
161167
***Private key** - the contents of the file your created in step 3 (but convert it to base64 first)
162168

163169
Click*Test connection* to verify your integration and apply your changes with the*Save* button. If enabled in your account you can setup[Pipeline definition restrictions]({{site.baseurl}}/docs/administration/access-control/#pipeline-definition-restrictions) by expanding the*YAML Options* segment.
@@ -170,7 +176,7 @@ you used GitLab when you [created your Codefresh account]({{site.baseurl}}/docs/
170176

171177
For the**Access Key** method you need:
172178

173-
* A friendly name for thegit context (it can be anything you want.)
179+
* A friendly name for theGit context (it can be anything you want.)
174180
* An access token/key
175181

176182

@@ -180,7 +186,7 @@ For more information see the [GitLab Documentation page](https://docs.gitlab.com
180186
The name you enter in order to create the token in the GitLab UI is completely arbitrary (use "Codefresh" for an example)
181187

182188
Once you have the token, paste it in the Codefresh UI and click*Test connection*. If everything is OK can
183-
now save thegit integration.
189+
now save theGit integration.
184190

185191
For GitLab on-premises you also need to provide the URL of the GitLab server in your organization. If enabled in your account you can setup[Pipeline definition restrictions]({{site.baseurl}}/docs/administration/access-control/#pipeline-definition-restrictions) by expanding the*YAML Options* segment.
186192

@@ -199,7 +205,7 @@ you used Bitbucket when you [created your Codefresh account]({{site.baseurl}}/do
199205

200206
For the**Application Password** method you need:
201207

202-
* A friendly name for thegit context (It can be anything you want.)
208+
* A friendly name for theGit context (It can be anything you want.)
203209
* The name of your Bitbucket account/email address
204210
* A Bitbucket application password
205211

@@ -218,7 +224,7 @@ alt="Bitbucket permissions"
218224
%}
219225

220226
The "label" you enter in your Bitbucket account in order to create the application password is completely arbitrary (use "Codefresh" for an example). Once you have the token, paste it in the Codefresh UI and click*Test connection*. If everything is OK you can
221-
now save thegit integration.
227+
now save theGit integration.
222228

223229
If enabled in your account you can setup[Pipeline definition restrictions]({{site.baseurl}}/docs/administration/access-control/#pipeline-definition-restrictions) by expanding the*YAML Options* segment.
224230

@@ -242,7 +248,7 @@ On the screen that will appear click the *New token* Button. Enter an arbitrary
242248
Select an expiration date for your token
243249

244250
>At the time of writing Azure DevOps does not have the option to create a token that is valid for ever. Choose a large
245-
time period and make sure that you have a policy in place for renewing your tokens so that Codefresh can continue to read yourGIT repo.
251+
time period and make sure that you have a policy in place for renewing your tokens so that Codefresh can continue to read yourGit repo.
246252

247253
{% include image.html
248254
lightbox="true"
@@ -315,24 +321,24 @@ with the same syntax [shown in pipelines]({{site.baseurl}}/docs/configure-ci-cd-
315321
For example if you already have a`token` on a resource call`git-credentials` you can put in the token field the expression {% raw %}`${{secrets.git-credentials@token}}`{% endraw %}.
316322

317323

318-
##Using yourgit provider
324+
##Using yourGit provider
319325

320-
Once your provider is active, you can add a new project into Codefresh and then during the[repository selection screen]({{site.baseurl}}/docs/getting-started/create-a-basic-pipeline/) you will have access to the additionalgit providers.
326+
Once your provider is active, you can add a new project into Codefresh and then during the[repository selection screen]({{site.baseurl}}/docs/getting-started/create-a-basic-pipeline/) you will have access to the additionalGit providers.
321327

322328
{% include image.html
323329
lightbox="true"
324330
file="/images/integrations/git/select-git.png"
325331
url="/images/integrations/git/select-git.png"
326332
max-width="60%"
327-
caption="SelectGIT provider"
328-
alt="SelectGIT provider"
333+
caption="SelectGit provider"
334+
alt="SelectGit provider"
329335
%}
330336

331337
>Notice that for all supported Git providers Codefresh will automatically create all the webhooks needed for
332338
triggering pipelines when a commit (or another event) happens.
333339

334-
After adding the repository Codefresh will behave exactly the same, regardless of the selectedgit provider.
335-
You will be able to[create pipelines]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/) for differentgit providers in exactly the same manner.
340+
After adding the repository Codefresh will behave exactly the same, regardless of the selectedGit provider.
341+
You will be able to[create pipelines]({{site.baseurl}}/docs/configure-ci-cd-pipeline/pipelines/) for differentGit providers in exactly the same manner.
336342

337343
##What to read next
338344

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp