Commit ee33d4da authored by Progyan Bhattacharya's avatar Progyan Bhattacharya

Fix ci.json: Remove Nesting from Secrets Rule

Remove Additional Object Wrapper from Secrets Field.

Reference: https://docs.gitlab.com/ee/ci/yaml/#secrets
Documentation: https://docs.gitlab.com/ee/ci/secretsSigned-off-by: default avatarProgyan Bhattacharya <bprogyan@gmail.com>
Changelog: fixed
parent 30d600ef
......@@ -423,37 +423,34 @@
"description": "Defines secrets to be injected as environment variables",
"additionalProperties": {
"type": "object",
"additionalProperties": {
"type": "object",
"description": "Environment variable name",
"properties": {
"vault": {
"oneOf": [
{
"type": "string",
"description": "The secret to be fetched from Vault (e.g. 'production/db/password@ops' translates to secret 'ops/data/production/db', field `password`)"
},
{
"type": "object",
"properties": {
"engine": {
"type": "object",
"properties": {
"name": { "type": "string" },
"path": { "type": "string" }
},
"required": ["name", "path"]
"description": "Environment variable name",
"properties": {
"vault": {
"oneOf": [
{
"type": "string",
"description": "The secret to be fetched from Vault (e.g. 'production/db/password@ops' translates to secret 'ops/data/production/db', field `password`)"
},
{
"type": "object",
"properties": {
"engine": {
"type": "object",
"properties": {
"name": { "type": "string" },
"path": { "type": "string" }
},
"path": { "type": "string" },
"field": { "type": "string" }
"required": ["name", "path"]
},
"required": ["engine", "path", "field"]
}
]
}
},
"required": ["vault"]
}
"path": { "type": "string" },
"field": { "type": "string" }
},
"required": ["engine", "path", "field"]
}
]
}
},
"required": ["vault"]
}
},
"before_script": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment