Skip to content

Commit b1fbc9e

Browse files
Add HTTPS scheme validation for REPORTING_URL in traffic-reporting workflow (#471)
* Initial plan * Add HTTPS scheme validation for REPORTING_URL Co-authored-by: codemillmatt <2053639+codemillmatt@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: codemillmatt <2053639+codemillmatt@users.noreply.github.com>
1 parent 3fb7023 commit b1fbc9e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/traffic-reporting.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ jobs:
6565
exit 1
6666
fi
6767
68+
# Validate that REPORTING_URL uses HTTPS
69+
if [[ ! "${REPORTING_URL}" =~ ^https:// ]]; then
70+
echo "❌ Error: REPORTING_URL must start with https:// to ensure secure transmission of sensitive traffic data."
71+
exit 1
72+
fi
73+
6874
# Send POST request with API key header, reading file directly
6975
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
7076
-X POST \

0 commit comments

Comments
 (0)