Skip to content

Commit 2889de0

Browse files
committed
We don't need it as a var
Signed-off-by: Sam Barker <sam@quadrocket.co.uk>
1 parent d301dd4 commit 2889de0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/sonar.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ jobs:
4646
id: set_branch_name
4747
env:
4848
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
49-
BRANCH_REGEX: "[\(\$\)\;]+"
5049
run: |
51-
if [[ ${HEAD_BRANCH} =~ ${BRANCH_REGEX} ]];
50+
if [[ ${HEAD_BRANCH} =~ [\(\$\)\;]+ ]];
5251
then
5352
echo "BRANCH '${HEAD_BRANCH}' contains potentially malicious characters as it matches BRANCH_REGEX '${BRANCH_REGEX}'"
5453
exit 1

0 commit comments

Comments
 (0)