Skip to content

Commit 39e0ce5

Browse files
authored
Update python-app.yml
1 parent 2a5bcea commit 39e0ce5

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/python-app.yml

+4-13
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,16 @@ jobs:
1414
steps:
1515
- name: Extract event details
1616
run: echo "EVENT_PAYLOAD=$(jq -c . < $GITHUB_EVENT_PATH)" >> $GITHUB_ENV
17-
18-
- name: Debug API Token
19-
run: |
20-
if [[ -z "$API_TOKEN" ]]; then
21-
echo "API_TOKEN is empty!"
22-
else
23-
echo "API_TOKEN starts with: ${API_TOKEN:0:4}****"
24-
fi
25-
env:
26-
API_TOKEN: ${{ secrets.API_TOKEN }}
27-
28-
- name: Generate Encrypted Token
17+
18+
- name: Generate Signature
2919
env:
3020
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}
3121
API_TOKEN: ${{ secrets.API_TOKEN }} # Token to encrypt
3222
run: |
3323
SIGNATURE=$(echo -n "$EVENT_PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | cut -d " " -f2)
34-
24+
3525
echo "SIGNATURE=$SIGNATURE" >> $GITHUB_ENV
26+
echo "API_TOKEN=$API_TOKEN" >> $GITHUB_ENV
3627
3728
- name: Call External API (With Encrypted Token)
3829
run: |

0 commit comments

Comments
 (0)