Commit 74b0b68e authored by Frédéric Caplette's avatar Frédéric Caplette

Merge branch 'Progyan-IK-master-patch-93085' into 'master'

Fix ci.json: Remove Nesting from Secrets Rule

See merge request gitlab-org/gitlab!82484
parents 218eff9c ee33d4da
...@@ -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