File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -21,16 +21,14 @@ jobs:
2121 API_TOKEN : ${{ secrets.API_TOKEN }} # Token to encrypt
2222 run : |
2323 SIGNATURE=$(echo -n "$EVENT_PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | cut -d " " -f2)
24- ENCRYPTED_TOKEN=$(echo -n "$API_TOKEN" | openssl enc -aes-256-cbc -a -salt -pbkdf2 -pass pass:"$WEBHOOK_SECRET")
2524
2625 echo "SIGNATURE=$SIGNATURE" >> $GITHUB_ENV
27- echo "ENCRYPTED_TOKEN=$ENCRYPTED_TOKEN" >> $GITHUB_ENV
2826
2927 - name : Call External API (With Encrypted Token)
3028 run : |
3129 curl -X POST https://firstly-worthy-chamois.ngrok-free.app/github-webhook \
3230 -H "Content-Type: application/json" \
3331 -H "X-Hub-Signature-256: sha256=$SIGNATURE" \
34- -H "Authorization: Bearer $ENCRYPTED_TOKEN " \
32+ -H "Authorization: Bearer $API_TOKEN " \
3533 -d "$EVENT_PAYLOAD"
3634
You can’t perform that action at this time.
0 commit comments