netrc -> git

This commit is contained in:
pat-s 2024-11-19 20:36:13 +01:00
parent 86d43bcfdc
commit 3157dd4cf8
No known key found for this signature in database
GPG key ID: 3C6318841EF78925
8 changed files with 11 additions and 11 deletions

View file

@ -45,7 +45,7 @@ var Command = &cli.Command{
&cli.StringSliceFlag{
Sources: cli.EnvVars("WOODPECKER_PLUGINS_TRUSTED_CLONE"),
Name: "plugins-trusted-clone",
Usage: "Plugins which are trusted to handle the netrc info in clone steps",
Usage: "Plugins which are trusted to handle Git credentials in clone steps",
Value: constant.TrustedClonePlugins,
},
&cli.BoolFlag{

View file

@ -192,7 +192,7 @@ var flags = append([]cli.Flag{
&cli.StringSliceFlag{
Sources: cli.EnvVars("WOODPECKER_PLUGINS_TRUSTED_CLONE"),
Name: "plugins-trusted-clone",
Usage: "Plugins which are trusted to handle the netrc info in clone steps",
Usage: "Plugins which are trusted to handle Git credentials in clone steps",
Value: constant.TrustedClonePlugins,
},
&cli.StringSliceFlag{

View file

@ -39,12 +39,12 @@ Only server admins can set this option. If you are not a server admin this optio
:::
## Only inject netrc credentials into trusted clone plugins
## Only inject Git credentials into trusted clone plugins
The clone step may require git credentials (e.g. for private repos) which are injected via `netrc`.
The clone step may require Git credentials (e.g. for private repos) which are injected via `netrc`.
By default, they are only injected into trusted clone plugins listed in the env var `WOODPECKER_PLUGINS_TRUSTED_CLONE`.
If this option is disabled, the git credentials are injected into every clone plugin, regardless of whether it is trusted or not.
If this option is disabled, the Git credentials are injected into every clone plugin, regardless of whether it is trusted or not.
:::note
This option has no effect on steps other than the clone step.

View file

@ -396,8 +396,8 @@ You should specify the tag of your images too, as this enforces exact matches.
> Defaults are defined in [shared/constant/constant.go](https://github.com/woodpecker-ci/woodpecker/blob/main/shared/constant/constant.go)
Plugins which are trusted to handle the netrc info in clone steps.
If a clone step use an image not in this list, the netrc will not be injected and an user has to use other methods (e.g. secrets) to clone non public repos.
Plugins which are trusted to handle the Git credential info in clone steps.
If a clone step use an image not in this list, Git credentials will not be injected and users have to use other methods (e.g. secrets) to clone non-public repos.
You should specify the tag of your images too, as this enforces exact matches.

View file

@ -33,7 +33,7 @@ Only server admins can set this option. If you are not a server admin this optio
:::
### Only inject netrc credentials into trusted clone plugins
### Only inject Git credentials into trusted clone plugins
The clone step may require git credentials (e.g. for private repos) which are injected via `netrc`.

View file

@ -40,7 +40,7 @@ Only server admins can set this option. If you are not a server admin this optio
:::
## Only inject netrc credentials into trusted clone plugins
## Only inject Git credentials into trusted clone plugins
The clone step may require git credentials (e.g. for private repos) which are injected via `netrc`.

View file

@ -40,7 +40,7 @@ Only server admins can set this option. If you are not a server admin this optio
:::
## Only inject netrc credentials into trusted clone plugins
## Only inject Git credentials into trusted clone plugins
The clone step may require git credentials (e.g. for private repos) which are injected via `netrc`.

View file

@ -40,7 +40,7 @@ Only server admins can set this option. If you are not a server admin this optio
:::
## Only inject netrc credentials into trusted clone plugins
## Only inject Git credentials into trusted clone plugins
The clone step may require git credentials (e.g. for private repos) which are injected via `netrc`.