From 35fd9667d357e8c857a4164829a8faf12f291412 Mon Sep 17 00:00:00 2001 From: Clivens Petit Date: Tue, 6 Apr 2021 13:28:28 -0400 Subject: [PATCH] fix: update github token validation to match the new changes in the platform --- env/parameters.tmpl.schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/env/parameters.tmpl.schema.json b/env/parameters.tmpl.schema.json index 591b1724..f385edf2 100644 --- a/env/parameters.tmpl.schema.json +++ b/env/parameters.tmpl.schema.json @@ -51,8 +51,8 @@ "title": "Pipeline bot Git token", "description": "A token for the Git user that will perform git operations inside a pipeline. This includes environment repository creation, and so this token should have full repository permissions. To create a token go to {{ .GitServer }}/settings/tokens/new?scopes=repo,read:user,read:org,user:email,write:repo_hook,delete_repo then enter a name, click Generate token, and copy and paste the token into this prompt.", "minLength": 40, - "maxLength": 40, - "pattern": "^[0-9a-f]{40}$" + "maxLength": 255, + "pattern": "^[A-Za-z0-9_]{40,255}$" } {{- else if eq .GitKind "bitbucketserver" }} "token": {