You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: update_api_files.sh
+4
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ SDK_VERSION_TAG=v2.751.0
11
11
# ----------- nothing to customize below -----------
12
12
TARGET=./src/resty/aws/raw-api
13
13
SOURCE=./delete-me
14
+
TFILE=$(mktemp)
14
15
set -e
15
16
pushd"$(dirname "$(realpath "$0")")"> /dev/null
16
17
@@ -74,6 +75,9 @@ echo "]===]))" >> "$FILENAME"
74
75
# Copy the individual API files
75
76
forfin"${file_list[@]}";do
76
77
source_file=$SOURCE/apis/$f.normal.json
78
+
# remove example keys from documentation to prevent security reports from being triggered
79
+
jq 'walk( if (type == "object") and has("documentation") and (.documentation|contains("wJalrXUtnFEMI")) then del(.documentation) else . end )'"$source_file">|"$TFILE"
80
+
mv -f "$TFILE""$source_file"; touch "$TFILE"
77
81
# replace . with - since . can't be in a Lua module name
0 commit comments