File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff line change 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
1618jobs :
1719 deploy_project_artifact :
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
You can’t perform that action at this time.
0 commit comments