Skip to content

Commit 9f396ef

Browse files
Eli CortezCopilot
andcommitted
fix: add BOM stripping to workflow URL parsing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0834065 commit 9f396ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/migrate-blob-to-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,10 @@ jobs:
9292
# Skip blank lines and comment lines
9393
[[ -z "$RAW_URL" || "$RAW_URL" == \#* ]] && continue
9494
95-
# Trim trailing whitespace/CR
95+
# Trim trailing whitespace/CR and leading UTF-8 BOM if present
9696
URL="${RAW_URL%$'\r'}"
9797
URL="${URL% }"
98+
URL="${URL#$'\xef\xbb\xbf'}"
9899
99100
# Derive a safe asset filename from the URL path
100101
BLOB_PATH="${URL#*blob.core.windows.net/*/}"

0 commit comments

Comments
 (0)