GitHub
Manage GitHub repository secrets, webhooks, environments, and more.Resources
GitHubSecret
Resource for managing GitHub repository and environment secrets.Authentication
Authentication is handled in the following order:tokenparameter in the resource props (if provided)GITHUB_TOKENenvironment variable
- ‘repo’ scope for private repositories
- ‘public_repo’ scope for public repositories
Props
Repository owner (user or organization)
Repository name
Secret name
Secret value (will be stored securely on GitHub)
Optional environment name to create an environment secret. If set, the secret will be created in the specified environment instead of at the repository level.
Optional GitHub API token (overrides environment variable). If not provided, will use GITHUB_TOKEN environment variable. Token must have ‘repo’ scope for private repositories or ‘public_repo’ scope for public repositories.
Returns
The ID of the resource
Repository owner
Repository name
Secret name
Environment name (if this is an environment secret)
Time at which the object was created/updated