Update repository settings
update_repositoryModify Woodpecker CI repository settings, changing only the specified fields such as visibility, timeout, or approval requirements.
Instructions
Changes Woodpecker settings of a repository. Only the fields you pass are touched. Note that "trusted" grants pipelines of this repository elevated container privileges and is an administrator-only change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_id | Yes | Numeric repository id. lookup_repository turns an "owner/name" pair into one; list_repositories shows both. | |
| timeout | No | Pipeline timeout in minutes. | |
| allow_pr | No | Run pipelines for pull requests. | |
| visibility | No | "public" shows builds to anyone, "internal" to logged-in users, "private" only to people with forge access. | |
| config_file | No | Path to the pipeline config, e.g. ".woodpecker.yml" or a directory like ".woodpecker/". Empty string restores the default. | |
| allow_deploy | No | Allow deployment events for this repository. | |
| confirm_token | No | Required when granting one of the trusted_* flags, when lowering "require_approval", or when setting visibility to "public"; every other change applies on the first call. | |
| trusted_network | No | Admin only: allow pipelines to use the host network. | |
| trusted_volumes | No | Admin only: allow pipelines to mount host volumes. | |
| require_approval | No | Which events wait for a human. "forks" is the default and the one that keeps a fork from running arbitrary code with your secrets. | |
| trusted_security | No | Admin only: allow privileged containers. This lets a pipeline take over the agent host. | |
| cancel_previous_pipeline_events | No | Events where a new pipeline cancels the still-running previous one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |