actionsCreateOrUpdateRepoSecret
Create or update a repository secret
PUT /repos/{owner}/{repo}/actions/secrets/{secret_name} HTTP/1.1Parameters
{
"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"
},
"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 a repository public key](https://docs.github.com/rest/actions/secrets#get-a-repository-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
}