gitlab_update_cicd_variable
Update a CI/CD variable in GitLab by specifying the project ID, variable key, and value. Optionally configure variable masking and protection settings to enhance security.
Instructions
Update a CI/CD variable
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes | The key of the variable | |
masked | No | Whether the variable is masked | |
project_id | Yes | The ID or URL-encoded path of the project | |
protected | No | Whether the variable is protected | |
value | Yes | The value of the variable |
Input Schema (JSON Schema)
{
"properties": {
"key": {
"description": "The key of the variable",
"type": "string"
},
"masked": {
"description": "Whether the variable is masked",
"type": "boolean"
},
"project_id": {
"description": "The ID or URL-encoded path of the project",
"type": "string"
},
"protected": {
"description": "Whether the variable is protected",
"type": "boolean"
},
"value": {
"description": "The value of the variable",
"type": "string"
}
},
"required": [
"project_id",
"key",
"value"
],
"type": "object"
}