diff --git a/.github/workflows/build-pr-artifacts.yml b/.github/workflows/build-pr-artifacts.yml index eb5dfc3..a988a17 100644 --- a/.github/workflows/build-pr-artifacts.yml +++ b/.github/workflows/build-pr-artifacts.yml @@ -24,7 +24,7 @@ jobs: run: | # Perform input validation here # For example, check for forbidden characters - if [[ "${{ github.head_ref }}" =~ [^a-zA-Z0-9._-] ]]; then + if [[ "${{ github.head_ref }}" =~ [^a-zA-Z0-9._-/] ]]; then echo "Error: Branch name contains invalid characters." exit 1 fi