Skip to content

Commit 7518026

Browse files
committed
ci: adding the new JWT token form the auth app to the run workflow on other repo step
1 parent b83cd3c commit 7518026

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/deploy-chatbot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Parse Deployment Command
14+
if: ${{ !env.ACT }}
1415
id: parse_command
1516
run: |
1617
COMMENT_BODY="${{ github.event.comment.body }}"
@@ -52,7 +53,7 @@ jobs:
5253
5354
- name: Get GH Zero Day Code APP token
5455
uses: actions/create-github-app-token@v1
55-
id: zdc-app-token
56+
id: zdc-auth-app-token
5657
with:
5758
app-id: ${{ vars.ZDC_AUTH_APP_ID }}
5859
private-key: ${{ secrets.ZDC_AUTH_PRIVATE_KEY }}
@@ -102,6 +103,7 @@ jobs:
102103
- name: Trigger Deployment Workflow
103104
uses: actions/github-script@v7
104105
with:
106+
github-token: ${{ steps.zdc-auth-app-token.outputs.token }}
105107
script: |
106108
const environment = `${{ steps.parse_command.outputs.environment }}`;
107109
const project = `${{ steps.parse_command.outputs.project }}`;

0 commit comments

Comments
 (0)