G
GetEnvironmentSecretInfo
GithubApi.GetEnvironmentSecretInfo
Description
Retrieve details of an environment secret on GitHub.
Fetches metadata about a specific GitHub environment secret. This tool is useful for getting information like the name and existence of a secret without revealing its encrypted value. Authentication with a token having `repo` scope or `secrets` permission is required.
Input Parameters
{
"parameters": [
{
"name": "environment_name",
"required": true,
"inferrable": true,
"description": "The name of the environment to access the secret from. Required to specify which environment's secret details to retrieve.",
"value_schema": {
"val_type": "string"
}
},
{
"name": "repository_id",
"required": true,
"inferrable": true,
"description": "The unique identifier of the GitHub repository.",
"value_schema": {
"val_type": "integer"
}
},
{
"name": "secret_name",
"required": true,
"inferrable": true,
"description": "The name of the environment secret to retrieve information about.",
"value_schema": {
"val_type": "string"
}
}
]
} Output
{
"description": "Response from the API endpoint 'actions/get-environment-secret'.",
"value_schema": {
"val_type": "json"
},
"available_modes": [
"value",
"error"
]
}