fix: Use hex encoding for webhook signature instead of base64

- Webhook handler expects hexdigest() format
- Deploy workflow was using base64 encoding
- This fixes the 401 signature validation error
This commit is contained in:
Greg
2025-07-01 11:14:00 -07:00
parent 23d3032ed6
commit b3f0fa3746

View File

@@ -75,7 +75,7 @@ jobs:
)
# Generate HMAC signature for webhook security
SIGNATURE=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "${{ secrets.WEBHOOK_SECRET }}" -binary | base64)
SIGNATURE=$(echo -n "$PAYLOAD" | openssl dgst -sha256 -hmac "${{ secrets.WEBHOOK_SECRET }}" | sed 's/^.* //')
# Send webhook
HTTP_CODE=$(curl -s -o /tmp/webhook_response.json -w "%{http_code}" \