summaryrefslogtreecommitdiff
path: root/app/validators
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-11 15:11:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-11 15:11:19 +0000
commitc79523e3952dad31a9ab8ccbb9e38466fec3aec3 (patch)
tree5435f5c30f00b6b2d6c364f4b0aa977491bfcafe /app/validators
parent30f9120ba63ea54283c34a046de691a3dbf59450 (diff)
downloadgitlab-ce-c79523e3952dad31a9ab8ccbb9e38466fec3aec3.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/json_schemas/build_metadata_id_tokens.json22
1 files changed, 22 insertions, 0 deletions
diff --git a/app/validators/json_schemas/build_metadata_id_tokens.json b/app/validators/json_schemas/build_metadata_id_tokens.json
new file mode 100644
index 00000000000..7f39c7274f3
--- /dev/null
+++ b/app/validators/json_schemas/build_metadata_id_tokens.json
@@ -0,0 +1,22 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "description": "CI builds metadata ID tokens",
+ "type": "object",
+ "patternProperties": {
+ ".*": {
+ "type": "object",
+ "patternProperties": {
+ "^id_token$": {
+ "type": "object",
+ "required": ["aud"],
+ "properties": {
+ "aud": { "type": "string" },
+ "field": { "type": "string" }
+ },
+ "additionalProperties": false
+ }
+ },
+ "additionalProperties": false
+ }
+ }
+}