File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -14,25 +14,16 @@ jobs:
14
14
steps :
15
15
- name : Extract event details
16
16
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
29
19
env :
30
20
WEBHOOK_SECRET : ${{ secrets.WEBHOOK_SECRET }}
31
21
API_TOKEN : ${{ secrets.API_TOKEN }} # Token to encrypt
32
22
run : |
33
23
SIGNATURE=$(echo -n "$EVENT_PAYLOAD" | openssl dgst -sha256 -hmac "$WEBHOOK_SECRET" | cut -d " " -f2)
34
-
24
+
35
25
echo "SIGNATURE=$SIGNATURE" >> $GITHUB_ENV
26
+ echo "API_TOKEN=$API_TOKEN" >> $GITHUB_ENV
36
27
37
28
- name : Call External API (With Encrypted Token)
38
29
run : |
You can’t perform that action at this time.
0 commit comments