Skip to content

Commit a9ad1ce

Browse files
debug: Add debug information to GitHub Actions workflow
- Add debug step to show current branch and IAM role ARN - Display which secrets are being used - Help identify OIDC authentication issue
1 parent 4fb69c2 commit a9ad1ce

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ jobs:
3838
role-to-assume: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}
3939
aws-region: ${{ env.AWS_REGION }}
4040

41+
- name: Debug AWS Role ARN
42+
run: |
43+
echo "Current branch: ${{ github.ref }}"
44+
echo "Using role ARN: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_ARN_PROD || secrets.AWS_ROLE_ARN_DEV }}"
45+
echo "AWS_ROLE_ARN_DEV exists: ${{ secrets.AWS_ROLE_ARN_DEV != '' }}"
46+
echo "AWS_ROLE_ARN_PROD exists: ${{ secrets.AWS_ROLE_ARN_PROD != '' }}"
47+
4148
- name: Validate SAM template
4249
run: |
4350
# AWS認証情報の確認

0 commit comments

Comments
 (0)