Skip to content

Commit 3562cfc

Browse files
committed
chore: Try to use token in inputs
1 parent 1e2b58a commit 3562cfc

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/deploy-chatbot.yml

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

5958
deploy-infra:
6059
needs: [parse-command, notify-user]

.github/workflows/deploy-project.yml

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

1816
jobs:
1917
deploy_project_artifact:
@@ -22,8 +20,7 @@ jobs:
2220
- name: Decrypt ZDC Token
2321
id: decrypt-token
2422
run: |
25-
ENCRYPTED_TOKEN="${{ secrets.ZDC_TOKEN }}"
26-
DECRYPTED_TOKEN=$(echo "$ENCRYPTED_TOKEN" | base64 -d | gpg --decrypt --quiet --batch --passphrase "${{ secrets.PASSPHRASE_ACTION_TOKEN }}")
23+
DECRYPTED_TOKEN=$(echo "${{ inputs.ZDC_TOKEN }}" | base64 -d | gpg --decrypt --quiet --batch --passphrase "${{ secrets.PASSPHRASE_ACTION_TOKEN }}")
2724
echo "ZDCTOKEN=$DECRYPTED_TOKEN" >> $GITHUB_ENV
2825
echo "::add-mask::$DECRYPTED_TOKEN"
2926

0 commit comments

Comments
 (0)