Skip to content

Commit

Permalink
Restrict the length for name and imageTag parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Sep 25, 2023
1 parent ad1254e commit 13b7274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/main.bicep
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@description('Location for all resources.')
param location string = resourceGroup().location

@minLength(5)
@maxLength(24)
@description('Name of the resources. Make sure it is unique e.g. dependabotcontoso to avoid conflicts or failures')
param name string = 'dependabot'

Expand All @@ -10,6 +12,7 @@ param projectSetups string = '[]'
@description('Access token for authenticating requests to GitHub.')
param githubToken string = ''

@minLength(1)
@description('Tag of the docker images.')
param imageTag string = '#{GITVERSION_NUGETVERSIONV2}#'

Expand Down
3 changes: 3 additions & 0 deletions server/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"name": {
"type": "string",
"defaultValue": "dependabot",
"minLength": 5,
"maxLength": 24,
"metadata": {
"description": "Name of the resources. Make sure it is unique e.g. dependabotcontoso to avoid conflicts or failures"
}
Expand All @@ -33,6 +35,7 @@
"imageTag": {
"type": "string",
"defaultValue": "#{GITVERSION_NUGETVERSIONV2}#",
"minLength": 1,
"metadata": {
"description": "Tag of the docker images."
}
Expand Down

0 comments on commit 13b7274

Please sign in to comment.