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
string
required
Repository owner (user or organization)
string
required
Repository name
string
required
Secret name
Secret
required
Secret value (will be stored securely on GitHub)
string
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.
Secret
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
string
The ID of the resource
string
Repository owner
string
Repository name
string
Secret name
string
Environment name (if this is an environment secret)
string
Time at which the object was created/updated