mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-08 08:35:30 +00:00
Merge branch 'origin/main' into 'next-release/main'
This commit is contained in:
commit
123f6dba73
9 changed files with 48 additions and 36 deletions
|
@ -40,9 +40,16 @@ Only server admins can set this option. If you are not a server admin this optio
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Only inject netrc credentials into trusted containers
|
## Only inject netrc credentials into trusted clone plugins
|
||||||
|
|
||||||
Cloning pipeline step may need git credentials. They are injected via netrc. By default, they're only injected if this option is enabled, the repo is trusted ([see above](#trusted)) or the image is a trusted clone image. If you uncheck the option, git credentials will be injected into any container in clone step.
|
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.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
This option has no effect on steps other than the clone step.
|
||||||
|
:::
|
||||||
|
|
||||||
## Project visibility
|
## Project visibility
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Prettier",
|
"name": "Prettier",
|
||||||
"docs": "https://raw.githubusercontent.com/woodpecker-ci/plugin-prettier/main/docs.md",
|
"docs": "https://codeberg.org/woodpecker-plugins/prettier/raw/branch/main/docs.md",
|
||||||
"verified": true
|
"verified": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,9 +33,16 @@ Only server admins can set this option. If you are not a server admin this optio
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
### Only inject netrc credentials into trusted containers
|
### Only inject netrc credentials into trusted clone plugins
|
||||||
|
|
||||||
Cloning pipeline step may need git credentials. They are injected via netrc. By default, they're only injected if this option is enabled, the repo is trusted ([see above](#trusted)) or the image is a trusted clone image. If you uncheck the option, git credentials will be injected into any container in clone step.
|
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.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
This option has no effect on steps other than the clone step.
|
||||||
|
:::
|
||||||
|
|
||||||
## Project visibility
|
## Project visibility
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,16 @@ Only server admins can set this option. If you are not a server admin this optio
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Only inject netrc credentials into trusted containers
|
## Only inject netrc credentials into trusted clone plugins
|
||||||
|
|
||||||
Cloning pipeline step may need git credentials. They are injected via netrc. By default, they're only injected if this option is enabled, the repo is trusted ([see above](#trusted)) or the image is a trusted clone image. If you uncheck the option, git credentials will be injected into any container in clone step.
|
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.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
This option has no effect on steps other than the clone step.
|
||||||
|
:::
|
||||||
|
|
||||||
## Project visibility
|
## Project visibility
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,16 @@ Only server admins can set this option. If you are not a server admin this optio
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Only inject netrc credentials into trusted containers
|
## Only inject netrc credentials into trusted clone plugins
|
||||||
|
|
||||||
Cloning pipeline step may need git credentials. They are injected via netrc. By default, they're only injected if this option is enabled, the repo is trusted ([see above](#trusted)) or the image is a trusted clone image. If you uncheck the option, git credentials will be injected into any container in clone step.
|
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.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
This option has no effect on steps other than the clone step.
|
||||||
|
:::
|
||||||
|
|
||||||
## Project visibility
|
## Project visibility
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,16 @@ Only server admins can set this option. If you are not a server admin this optio
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Only inject netrc credentials into trusted containers
|
## Only inject netrc credentials into trusted clone plugins
|
||||||
|
|
||||||
Cloning pipeline step may need git credentials. They are injected via netrc. By default, they're only injected if this option is enabled, the repo is trusted ([see above](#trusted)) or the image is a trusted clone image. If you uncheck the option, git credentials will be injected into any container in clone step.
|
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.
|
||||||
|
|
||||||
|
:::note
|
||||||
|
This option has no effect on steps other than the clone step.
|
||||||
|
:::
|
||||||
|
|
||||||
## Project visibility
|
## Project visibility
|
||||||
|
|
||||||
|
|
|
@ -38,15 +38,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- go test
|
- go test
|
||||||
|
|
||||||
secrets:
|
|
||||||
image: docker
|
|
||||||
commands:
|
|
||||||
- echo $DOCKER_USERNAME
|
|
||||||
- echo $DOCKER_PASSWORD
|
|
||||||
secrets:
|
|
||||||
- docker_username
|
|
||||||
- docker_prod_password
|
|
||||||
|
|
||||||
detached:
|
detached:
|
||||||
image: redis
|
image: redis
|
||||||
detach: true
|
detach: true
|
||||||
|
|
|
@ -286,9 +286,6 @@
|
||||||
"directory": {
|
"directory": {
|
||||||
"$ref": "#/definitions/step_directory"
|
"$ref": "#/definitions/step_directory"
|
||||||
},
|
},
|
||||||
"secrets": {
|
|
||||||
"$ref": "#/definitions/step_secrets"
|
|
||||||
},
|
|
||||||
"when": {
|
"when": {
|
||||||
"$ref": "#/definitions/step_when"
|
"$ref": "#/definitions/step_when"
|
||||||
},
|
},
|
||||||
|
@ -616,14 +613,6 @@
|
||||||
"type": ["boolean", "string", "number", "array", "object"]
|
"type": ["boolean", "string", "number", "array", "object"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"step_secrets": {
|
|
||||||
"description": "Pass secrets to a pipeline step at runtime. Read more: https://woodpecker-ci.org/docs/usage/secrets",
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"minLength": 1
|
|
||||||
},
|
|
||||||
"step_settings": {
|
"step_settings": {
|
||||||
"description": "Change the settings of your plugin. Read more: https://woodpecker-ci.org/docs/usage/plugins/overview",
|
"description": "Change the settings of your plugin. Read more: https://woodpecker-ci.org/docs/usage/plugins/overview",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -845,9 +834,6 @@
|
||||||
"directory": {
|
"directory": {
|
||||||
"$ref": "#/definitions/step_directory"
|
"$ref": "#/definitions/step_directory"
|
||||||
},
|
},
|
||||||
"secrets": {
|
|
||||||
"$ref": "#/definitions/step_secrets"
|
|
||||||
},
|
|
||||||
"settings": {
|
"settings": {
|
||||||
"$ref": "#/definitions/step_settings"
|
"$ref": "#/definitions/step_settings"
|
||||||
},
|
},
|
||||||
|
|
|
@ -93,8 +93,8 @@
|
||||||
"desc": "Every pipeline needs to be approved before being executed."
|
"desc": "Every pipeline needs to be approved before being executed."
|
||||||
},
|
},
|
||||||
"netrc_only_trusted": {
|
"netrc_only_trusted": {
|
||||||
"netrc_only_trusted": "Only inject netrc credentials into trusted containers",
|
"netrc_only_trusted": "Only inject netrc credentials into trusted clone plugins",
|
||||||
"desc": "Only inject netrc credentials into trusted containers (recommended)."
|
"desc": "If enabled, git netrc credentials are only available for trusted clone plugins set in `WOODPECKER_PLUGINS_TRUSTED_CLONE`. Otherwise, all clone plugins can use the netrc credentials. This option has no effect on non-clone steps."
|
||||||
},
|
},
|
||||||
"trusted": {
|
"trusted": {
|
||||||
"trusted": "Trusted",
|
"trusted": "Trusted",
|
||||||
|
|
Loading…
Reference in a new issue