Skip to content

Commit fdc07eb

Browse files
authored
Update python-app.yml
1 parent 75be86e commit fdc07eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)