terraform-provider-woodpecker/docs/data-sources/secret.md

34 lines
940 B
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "woodpecker_secret Data Source - terraform-provider-woodpecker"
subcategory: ""
description: |-
Use this data source to retrieve information about a global secret.
---
# woodpecker_secret (Data Source)
Use this data source to retrieve information about a global secret.
## Example Usage
```terraform
data "woodpecker_secret" "test_secret" {
name = "test"
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `name` (String) the name of the secret
### Read-Only
- `events` (Set of String) events for which the secret is available (push, tag, pull_request, deployment, cron, manual)
- `id` (Number) the secret's id
- `images` (Set of String) list of Docker images for which this secret is available
- `plugins_only` (Boolean) whether secret is only available for [plugins](https://woodpecker-ci.org/docs/usage/plugins/plugins)