Add a forge
create_forgeRegister an additional forge for authentication, requiring an existing OAuth application and admin privileges. Use this to add a new code hosting service to Woodpecker.
Instructions
Registers an additional forge. Admin only, and two-step: a forge is a way to sign in, and Woodpecker grants administrator rights by login name alone, so an account on the new forge spelled like an admin is one. The OAuth application has to exist on the forge side first, with this Woodpecker as its callback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Base URL of the forge, e.g. "https://github.com". | |
| type | Yes | Which forge software this is. | |
| client | Yes | OAuth client id from the forge. | |
| oauth_host | No | Public URL used for the OAuth redirect, when it differs from "url" — the usual case for a forge reachable under two names. | |
| skip_verify | No | Skip TLS verification towards this forge. Only for a private CA you cannot install; it disables certificate checking entirely. | |
| confirm_token | No | Token from a previous call of this tool. | |
| oauth_client_secret | Yes | OAuth client secret. Write-only — Woodpecker never returns it again. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |