Skip to content

Commit cb51df4

Browse files
committed
Add debugging step to GitHub Actions workflow for enhanced visibility
1 parent 4733008 commit cb51df4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/terraform.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ on:
2323
value: ${{ jobs.terraform.outputs.app_name }}
2424

2525

26+
2627
permissions:
2728
id-token: write
2829
contents: read
2930
actions: read
31+
3032
jobs:
3133
terraform:
3234
name: Terraform Deployment
@@ -44,6 +46,16 @@ jobs:
4446
- name: Checkout Repository
4547
uses: actions/checkout@v5
4648

49+
- name: Debug GitHub Context
50+
run: |
51+
echo "Repository: ${{ github.repository }}"
52+
echo "Ref: ${{ github.ref }}"
53+
echo "Event: ${{ github.event_name }}"
54+
echo "Expected sub claim: repo:${{ github.repository }}:ref:${{ github.ref }}"
55+
echo "Actual repository: karimzakzouk/graduation-project-devops"
56+
AWS_ACCOUNT_ID=${{ secrets.AWS_ACCOUNT_ID }}
57+
echo "AWS_ACCOUNT_ID: $AWS_ACCOUNT_ID"
58+
4759
- name: Configure AWS credentials via OIDC
4860
uses: aws-actions/configure-aws-credentials@v4
4961
with:

0 commit comments

Comments
 (0)