We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 852e6fa commit c702540Copy full SHA for c702540
.github/workflows/python-app.yml
@@ -20,7 +20,7 @@ jobs:
20
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}
21
API_TOKEN: ${{ secrets.API_TOKEN }} # Token to encrypt
22
run: |
23
- SIGNATURE=$(echo -n "$EVENT_PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | cut -d " " -f2)
+ SIGNATURE=$(echo -n "$EVENT_PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" -binary | xxd -p)
24
ENCRYPTED_TOKEN=$(echo -n "$API_TOKEN" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | cut -d " " -f2)
25
26
echo "SIGNATURE=$SIGNATURE" >> $GITHUB_ENV
0 commit comments