Drone · Schema

Secret

An encrypted secret variable stored in Drone CI/CD.

CI/CDContinuous IntegrationContinuous DeliveryDevOpsContainersDockerBuild AutomationOpen SourceSelf-Hosted

Properties

Name Type Description
namespace string The organization namespace (for org-level secrets).
name string The secret name, used to reference the secret in pipeline steps.
data string The secret value (write-only; not returned in GET responses).
pull_request boolean Whether to expose the secret in pull request builds.
pull_request_push boolean Whether to expose the secret in builds triggered by pushes to pull request branches.
View JSON Schema on GitHub

JSON Schema

drone-secret.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/drone/json-schema/drone-secret.json",
  "title": "Secret",
  "description": "An encrypted secret variable stored in Drone CI/CD.",
  "type": "object",
  "properties": {
    "namespace": { "type": "string", "description": "The organization namespace (for org-level secrets)." },
    "name": { "type": "string", "description": "The secret name, used to reference the secret in pipeline steps." },
    "data": { "type": "string", "description": "The secret value (write-only; not returned in GET responses)." },
    "pull_request": { "type": "boolean", "description": "Whether to expose the secret in pull request builds.", "default": false },
    "pull_request_push": { "type": "boolean", "description": "Whether to expose the secret in builds triggered by pushes to pull request branches.", "default": false }
  },
  "required": ["name"]
}