File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 fi
1818
1919 # Block HTTP URLs (except localhost)
20- HTTP_URLS=$(grep -rE 'http ://[^l][^o][^c]' --include="*.py" --include="*.js" --include="*.ts" --include="*.go" --include="*.rs" --include="*.yaml" --include="*.yml" . 2>/dev/null | grep -v 'localhost\|127.0.0.1\|example\|test\|spec' | head -5 || true)
20+ HTTP_URLS=$(grep -rE 'https ://[^l][^o][^c]' --include="*.py" --include="*.js" --include="*.ts" --include="*.go" --include="*.rs" --include="*.yaml" --include="*.yml" . 2>/dev/null | grep -v 'localhost\|127.0.0.1\|example\|test\|spec' | head -5 || true)
2121 if [ -n "$HTTP_URLS" ]; then
2222 echo "⚠️ HTTP URLs found. Use HTTPS:"
2323 echo "$HTTP_URLS"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ See https://spdx.org/licenses/ for license details.
99
1010 Apache License
1111 Version 2.0, January 2004
12- http ://www.apache.org/licenses/
12+ https ://www.apache.org/licenses/
1313
1414 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1515
@@ -190,7 +190,7 @@ See https://spdx.org/licenses/ for license details.
190190 you may not use this file except in compliance with the License.
191191 You may obtain a copy of the License at
192192
193- http ://www.apache.org/licenses/LICENSE-2.0
193+ https ://www.apache.org/licenses/LICENSE-2.0
194194
195195 Unless required by applicable law or agreed to in writing, software
196196 distributed under the License is distributed on an "AS IS" BASIS,
You can’t perform that action at this time.
0 commit comments