@@ -13,19 +13,23 @@ inputs:
1313 dir :
1414 description : App/package directory
1515 required : true
16+ pattern : " ^[a-zA-Z0-9._/-]+$"
1617
1718 java-version :
1819 description : Java version, defaults to 17 (LTS)
1920 required : true
21+ pattern : ' ^[0-9]+(\.[0-9]+)*$'
2022
2123 # ## Typical / recommended
2224 java-cache :
2325 description : Java package manager cache, defaults to maven
2426 default : maven
27+ pattern : " ^(maven|gradle)$"
2528
2629 java-distribution :
2730 description : Java distribution, defaults to temurin
2831 default : temurin
32+ pattern : " ^(temurin|corretto|openjdk|zulu)$"
2933
3034 sonar_args :
3135 # https://docs.sonarcloud.io/advanced-setup/analysis-parameters/
@@ -36,6 +40,7 @@ inputs:
3640
3741 sonar_token :
3842 description : Sonar token, provide unpopulated token for pre-setup (will skip)
43+ pattern : " ^[a-zA-Z0-9]{20,}$"
3944
4045 triggers :
4146 description : Paths (array) used to trigger a build; e.g. ('./backend/' './frontend/)
@@ -44,14 +49,17 @@ inputs:
4449 diff_branch :
4550 description : Branch to diff against
4651 default : ${{ github.event.repository.default_branch }}
52+ pattern : " ^[a-zA-Z0-9._/-]+$"
4753
4854 repository :
4955 description : Non-default repository to clone (used for testing this action)
5056 default : ${{ github.repository }}
57+ pattern : " ^[a-zA-Z0-9-_]+/[a-zA-Z0-9-_]+$"
5158
5259 branch :
5360 description : Non-default branch to clone (used for testing this action)
5461 default : " "
62+ pattern : " ^[a-zA-Z0-9._/-]*$"
5563
5664outputs :
5765 triggered :
0 commit comments