Skip to content

Commit 78f5931

Browse files
committed
debug: Add OpenSSL version logging to verification workflows
Added 'openssl version' output to both workflows to diagnose SHA256 output format differences: 1. wheels.yml: Log OpenSSL version when creating .verify.txt 2. release.yml: Log OpenSSL version when re-verifying .verify.txt This will show us exactly which OpenSSL version is being used in each workflow and help us understand the format differences: - OpenSSL 1.x outputs: SHA256(file)= hash - OpenSSL 3.x outputs: SHA2-256(file)= hash Related to: crossbario#1716, crossbario#1717
1 parent 8be19ca commit 78f5931

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ jobs:
164164
echo "==> Source Distribution Re-Verification (Chain of Custody)"
165165
echo "======================================================================"
166166
echo ""
167+
echo "OpenSSL version:"
168+
openssl version
169+
echo ""
167170
echo "Re-verifying artifact integrity at release workflow."
168171
echo "Comparing against original verification from wheels workflow."
169172
echo ""
@@ -205,7 +208,7 @@ jobs:
205208
echo "DEBUG: Lines matching 'SHA256':"
206209
grep -i "SHA256" "$VERIFY_FILE" || echo "(no matches found)"
207210
echo ""
208-
ORIGINAL_SHA256=$(grep "^SHA256(" "$VERIFY_FILE" | awk '{print $2}' | tr -d ')' || echo "")
211+
ORIGINAL_SHA256=$(grep -E "^SHA(2-)?256\(" "$VERIFY_FILE" | awk -F'= ' '{print $2}' | tr -d ' ' || echo "")
209212
if [ -z "$ORIGINAL_SHA256" ]; then
210213
echo "❌ ERROR: Could not extract SHA256 from verification report"
211214
echo " The verification report may have an unexpected format"
@@ -528,6 +531,9 @@ jobs:
528531
echo "==> Source Distribution Re-Verification (Chain of Custody)"
529532
echo "======================================================================"
530533
echo ""
534+
echo "OpenSSL version:"
535+
openssl version
536+
echo ""
531537
echo "Re-verifying artifact integrity at release workflow."
532538
echo "Comparing against original verification from wheels workflow."
533539
echo ""
@@ -569,7 +575,7 @@ jobs:
569575
echo "DEBUG: Lines matching 'SHA256':"
570576
grep -i "SHA256" "$VERIFY_FILE" || echo "(no matches found)"
571577
echo ""
572-
ORIGINAL_SHA256=$(grep "^SHA256(" "$VERIFY_FILE" | awk '{print $2}' | tr -d ')' || echo "")
578+
ORIGINAL_SHA256=$(grep -E "^SHA(2-)?256\(" "$VERIFY_FILE" | awk -F'= ' '{print $2}' | tr -d ' ' || echo "")
573579
if [ -z "$ORIGINAL_SHA256" ]; then
574580
echo "❌ ERROR: Could not extract SHA256 from verification report"
575581
echo " The verification report may have an unexpected format"
@@ -917,6 +923,9 @@ jobs:
917923
echo "==> Source Distribution Re-Verification (Chain of Custody)"
918924
echo "======================================================================"
919925
echo ""
926+
echo "OpenSSL version:"
927+
openssl version
928+
echo ""
920929
echo "Re-verifying artifact integrity at release workflow."
921930
echo "Comparing against original verification from wheels workflow."
922931
echo ""
@@ -958,7 +967,7 @@ jobs:
958967
echo "DEBUG: Lines matching 'SHA256':"
959968
grep -i "SHA256" "$VERIFY_FILE" || echo "(no matches found)"
960969
echo ""
961-
ORIGINAL_SHA256=$(grep "^SHA256(" "$VERIFY_FILE" | awk '{print $2}' | tr -d ')' || echo "")
970+
ORIGINAL_SHA256=$(grep -E "^SHA(2-)?256\(" "$VERIFY_FILE" | awk -F'= ' '{print $2}' | tr -d ' ' || echo "")
962971
if [ -z "$ORIGINAL_SHA256" ]; then
963972
echo "❌ ERROR: Could not extract SHA256 from verification report"
964973
echo " The verification report may have an unexpected format"

.github/workflows/wheels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ jobs:
249249
echo "==> Source Distribution Integrity Verification (Issue #1716)"
250250
echo "======================================================================"
251251
echo ""
252+
echo "OpenSSL version:"
253+
openssl version
254+
echo ""
252255
echo "Creating cryptographic fingerprints and verification logs for"
253256
echo "supply chain integrity - ensures no corruption from build → artifact → release."
254257
echo ""

0 commit comments

Comments
 (0)