Get a secret
get_secretRetrieve metadata for a stored secret, including applicable events and images and its note. The secret value is never exposed.
Instructions
Returns one secret's metadata: which events and images it applies to, and its note. The value is not part of the answer — Woodpecker strips it from every response, including the one right after creating it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Secret name, stored case-sensitively — MY_TOKEN and my_token are two secrets. | |
| scope | Yes | Which level to act on. "repository" needs repo_id, "organization" needs org_id, and "global" is instance-wide and needs neither (admin only). A pipeline sees the repository level first, then the organization, then global. | |
| org_id | No | Required when scope is "organization". | |
| repo_id | No | Required when scope is "repository". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |