Skip to content

Commit 56fed94

Browse files
authored
Update add-netlify-links.yml
1 parent f8fc208 commit 56fed94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/add-netlify-links.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
env:
2525
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
2626
run: |
27-
# Function to sanitize file paths
28-
sanitize_file_path() {
27+
# Function to validate file paths
28+
validate_file_path() {
2929
local file_path="$1"
3030
# Allow only alphanumeric characters, _ . / and -
3131
if [[ ! "$file_path" =~ ^[a-zA-Z0-9._/-]+$ ]]; then
@@ -39,7 +39,7 @@ jobs:
3939
files=$(echo "$CHANGED_FILES" | tr "," "\n")
4040
for file in $files; do
4141
echo "processing ${file}"
42-
sanitize_file_path "$file"
42+
validate_file_path "$file"
4343
if (! grep -s "includes/" <<< $file) &&
4444
(! grep -s "images/" <<< $file) &&
4545
(! grep -s "examples/" <<< $file); then

0 commit comments

Comments
 (0)