We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d301dd4 commit 2889de0Copy full SHA for 2889de0
.github/workflows/sonar.yaml
@@ -46,9 +46,8 @@ jobs:
46
id: set_branch_name
47
env:
48
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }}
49
- BRANCH_REGEX: "[\(\$\)\;]+"
50
run: |
51
- if [[ ${HEAD_BRANCH} =~ ${BRANCH_REGEX} ]];
+ if [[ ${HEAD_BRANCH} =~ [\(\$\)\;]+ ]];
52
then
53
echo "BRANCH '${HEAD_BRANCH}' contains potentially malicious characters as it matches BRANCH_REGEX '${BRANCH_REGEX}'"
54
exit 1
0 commit comments