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 @@ ...@@ -423,37 +423,34 @@
"description": "Defines secrets to be injected as environment variables", "description": "Defines secrets to be injected as environment variables",
"additionalProperties": { "additionalProperties": {
"type": "object", "type": "object",
"additionalProperties": { "description": "Environment variable name",
"type": "object", "properties": {
"description": "Environment variable name", "vault": {
"properties": { "oneOf": [
"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": "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": {
"type": "object", "engine": {
"properties": { "type": "object",
"engine": { "properties": {
"type": "object", "name": { "type": "string" },
"properties": { "path": { "type": "string" }
"name": { "type": "string" },
"path": { "type": "string" }
},
"required": ["name", "path"]
}, },
"path": { "type": "string" }, "required": ["name", "path"]
"field": { "type": "string" }
}, },
"required": ["engine", "path", "field"] "path": { "type": "string" },
} "field": { "type": "string" }
] },
} "required": ["engine", "path", "field"]
}, }
"required": ["vault"] ]
} }
},
"required": ["vault"]
} }
}, },
"before_script": { "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