Skip to content

Commit df4cb19

Browse files
outsinreTieske
andauthored
Add a comment to explain the purpose.
Co-authored-by: Thijs Schreijer <thijs@thijsschreijer.nl>
1 parent 6af6ad9 commit df4cb19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

update_api_files.sh

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ echo "]===]))" >> "$FILENAME"
7575
# Copy the individual API files
7676
for f in "${file_list[@]}"; do
7777
source_file=$SOURCE/apis/$f.normal.json
78+
# remove example keys from documentation to prevent security reports from being triggered
7879
jq 'walk( if (type == "object") and has("documentation") and (.documentation|contains("wJalrXUtnFEMI")) then del(.documentation) else . end )' "$source_file" >| "$TFILE"
7980
mv -f "$TFILE" "$source_file"; touch "$TFILE"
8081
# replace . with - since . can't be in a Lua module name

0 commit comments

Comments
 (0)