File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
.github/actions/generate-builder Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ if [[ "$BUILDER_TAG" == "$(echo -n "$BUILDER_TAG" | grep -P '^[a-f\d]{40}$')" ]]
5151 BUILDER_TAG=" $RELEASE_TAG "
5252fi
5353
54- if [[ " $BUILDER_TAG " != " $( echo -n " $BUILDER_TAG " | grep -P ' ^v\d*(\.([\d]{1,})){0,2} $' ) " ]]; then
55- echo " Invalid builder version: $BUILDER_TAG . Expected version of the form vX.Y.Z"
54+ if [[ " $BUILDER_TAG " != " $( echo -n " $BUILDER_TAG " | grep -oe ' ^v[1-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\? $' ) " ]]; then
55+ echo " Invalid builder version: $BUILDER_TAG . Expected version of the form vX.Y.Z(-rc.A) "
5656 echo " For details see https://github.com/slsa-framework/slsa-github-generator/blob/main/README.md#referencing-slsa-builders-and-generators"
5757 exit 7
5858fi
You can’t perform that action at this time.
0 commit comments