trigger: validate that the commit is a short SHA
This commit is contained in:
parent
02498d72ba
commit
133ed7190e
1 changed files with 2 additions and 1 deletions
|
@ -564,7 +564,8 @@ class CustomBuildTrigger(BuildTrigger):
|
|||
'properties': {
|
||||
'commit': {
|
||||
'type': 'string',
|
||||
'description': 'SHA-1 identifier for a git commit',
|
||||
'description': 'first 7 characters of the SHA-1 identifier for a git commit',
|
||||
'pattern': '^(\w{7})$',
|
||||
},
|
||||
'ref': {
|
||||
'type': 'string',
|
||||
|
|
Reference in a new issue