Skip to content

Commit bde5240

Browse files
committed
chore: Tentative change
1 parent 8ec6920 commit bde5240

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/deploy-chatbot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ jobs:
5252
with:
5353
project: ${{ needs.parse-command.outputs.project }}
5454
environment: ${{ needs.parse-command.outputs.environment }}
55+
secrets:
5556
ZDC_TOKEN: ${{ needs.generate-token.outputs.ZDC_TOKEN }}
56-
secrets: inherit
57+
PASSPHRASE_ACTION_TOKEN: ${{ secrets.PASSPHRASE_ACTION_TOKEN }}
5758

5859
deploy-infra:
5960
needs: [parse-command, notify-user]

.github/workflows/deploy-project.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ on:
99
environment:
1010
required: true
1111
type: string
12+
secrets:
1213
ZDC_TOKEN:
1314
required: true
14-
type: string
15+
PASSPHRASE_ACTION_TOKEN:
16+
required: true
1517

1618
jobs:
1719
deploy_project_artifact:
@@ -20,7 +22,8 @@ jobs:
2022
- name: Decrypt ZDC Token
2123
id: decrypt-token
2224
run: |
23-
DECRYPTED_TOKEN=$(echo "${{ inputs.ZDC_TOKEN }}" | base64 -d | gpg --decrypt --quiet --batch --passphrase "${{ secrets.PASSPHRASE_ACTION_TOKEN }}")
25+
ENCRYPTED_TOKEN="${{ secrets.ZDC_TOKEN }}"
26+
DECRYPTED_TOKEN=$(echo "$ENCRYPTED_TOKEN" | base64 -d | gpg --decrypt --quiet --batch --passphrase "${{ secrets.PASSPHRASE_ACTION_TOKEN }}")
2427
echo "ZDCTOKEN=$DECRYPTED_TOKEN" >> $GITHUB_ENV
2528
echo "::add-mask::$DECRYPTED_TOKEN"
2629

0 commit comments

Comments
 (0)