Skip to content

Commit e8d58df

Browse files
author
Jonathan D.A. Jewell
committed
chore: Upgrade HTTP → HTTPS URLs (RSR security)
1 parent ae9b5df commit e8d58df

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/security-policy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
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"

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Apache License, Version 2.0
4646

4747
Apache License
4848
Version 2.0, January 2004
49-
http://www.apache.org/licenses/
49+
https://www.apache.org/licenses/
5050

5151
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
5252

src/rsr/badges.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl BadgeGenerator {
116116
let status_x = label_width + status_width / 2;
117117

118118
format!(
119-
r##"<svg xmlns="http://www.w3.org/2000/svg" width="{total_width}" height="20" role="img" aria-label="{label}: {status}">
119+
r##"<svg xmlns="https://www.w3.org/2000/svg" width="{total_width}" height="20" role="img" aria-label="{label}: {status}">
120120
<title>{label}: {status}</title>
121121
<linearGradient id="s" x2="0" y2="100%">
122122
<stop offset="0" stop-color="#bbb" stop-opacity=".1"/>
@@ -148,7 +148,7 @@ impl BadgeGenerator {
148148
let status_x = label_width + status_width / 2;
149149

150150
format!(
151-
r##"<svg xmlns="http://www.w3.org/2000/svg" width="{total_width}" height="20" role="img" aria-label="{label}: {status}">
151+
r##"<svg xmlns="https://www.w3.org/2000/svg" width="{total_width}" height="20" role="img" aria-label="{label}: {status}">
152152
<title>{label}: {status}</title>
153153
<g shape-rendering="crispEdges">
154154
<rect width="{label_width}" height="20" fill="#555"/>
@@ -170,7 +170,7 @@ impl BadgeGenerator {
170170
let status_x = label_width + status_width / 2;
171171

172172
format!(
173-
r##"<svg xmlns="http://www.w3.org/2000/svg" width="{total_width}" height="18" role="img" aria-label="{label}: {status}">
173+
r##"<svg xmlns="https://www.w3.org/2000/svg" width="{total_width}" height="18" role="img" aria-label="{label}: {status}">
174174
<title>{label}: {status}</title>
175175
<linearGradient id="s" x2="0" y2="100%">
176176
<stop offset="0" stop-color="#fff" stop-opacity=".7"/>
@@ -207,7 +207,7 @@ impl BadgeGenerator {
207207
let status_text_width = status_width - 20;
208208

209209
format!(
210-
r##"<svg xmlns="http://www.w3.org/2000/svg" width="{total_width}" height="28" role="img" aria-label="{label}: {status}">
210+
r##"<svg xmlns="https://www.w3.org/2000/svg" width="{total_width}" height="28" role="img" aria-label="{label}: {status}">
211211
<title>{label}: {status}</title>
212212
<g shape-rendering="crispEdges">
213213
<rect width="{label_width}" height="28" fill="#555"/>

0 commit comments

Comments
 (0)