We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8fc208 commit 56fed94Copy full SHA for 56fed94
.github/workflows/add-netlify-links.yml
@@ -24,8 +24,8 @@ jobs:
24
env:
25
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
26
run: |
27
- # Function to sanitize file paths
28
- sanitize_file_path() {
+ # Function to validate file paths
+ validate_file_path() {
29
local file_path="$1"
30
# Allow only alphanumeric characters, _ . / and -
31
if [[ ! "$file_path" =~ ^[a-zA-Z0-9._/-]+$ ]]; then
@@ -39,7 +39,7 @@ jobs:
39
files=$(echo "$CHANGED_FILES" | tr "," "\n")
40
for file in $files; do
41
echo "processing ${file}"
42
- sanitize_file_path "$file"
+ validate_file_path "$file"
43
if (! grep -s "includes/" <<< $file) &&
44
(! grep -s "images/" <<< $file) &&
45
(! grep -s "examples/" <<< $file); then
0 commit comments