Skip to content

Commit 9e5c1df

Browse files
committed
Add debug AWS credentials inside Docker container step
1 parent e3cbe3b commit 9e5c1df

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/cdk_release_code.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,19 @@ jobs:
117117
SLACK_BOT_TOKEN: "${{ secrets.SLACK_BOT_TOKEN }}"
118118
SLACK_SIGNING_SECRET: "${{ secrets.SLACK_SIGNING_SECRET }}"
119119

120+
- name: Debug AWS credentials inside Docker container
121+
run: |
122+
docker run --rm \
123+
-e AWS_ACCESS_KEY_ID=${{ steps.connect-aws.outputs.aws-access-key-id }} \
124+
-e AWS_SECRET_ACCESS_KEY=${{ steps.connect-aws.outputs.aws-secret-access-key }} \
125+
-e AWS_SESSION_TOKEN=${{ steps.connect-aws.outputs.aws-session-token }} \
126+
amazonlinux:2 \
127+
bash -c '
128+
echo "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" | tee -a /github-step-summary
129+
echo "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:0:4}***" | tee -a /github-step-summary
130+
echo "AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN:0:8}***" | tee -a /github-step-summary
131+
'
132+
120133
- name: Show diff
121134
run: |
122135
docker run \

0 commit comments

Comments
 (0)