actionsCreateOrUpdateEnvironmentSecret
Create or update an environment secret
Details
- Method:
PUT - Path:
/repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name} - Operation ID:
actions/create-or-update-environment-secret
Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"environment_name": {
"description": "The name of the environment. The name must be URL encoded. For example, any slashes in the name must be replaced with `%2F`.",
"required": true,
"location": "path",
"type": "string"
},
"secret_name": {
"description": "The name of the secret.",
"required": true,
"location": "path",
"type": "string"
},
"encrypted_value": {
"description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an environment public key](https://docs.github.com/rest/actions/secrets#get-an-environment-public-key) endpoint.",
"required": true,
"location": "body",
"type": "string"
},
"key_id": {
"description": "ID of the key you used to encrypt the secret.",
"required": true,
"location": "body",
"type": "string"
}
}Response Schema
{
"title": "Empty Object",
"description": "An object without any properties.",
"type": "object",
"properties": {},
"additionalProperties": false
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('actionsCreateOrUpdateEnvironmentSecret', {
# Add required parameters here
})