Skip to content

Commit 5ce9716

Browse files
committed
Enhance AWS credentials configuration by adding role session name and audience for improved security
1 parent 06b1379 commit 5ce9716

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/terraform.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ jobs:
6060
uses: aws-actions/configure-aws-credentials@v4
6161
with:
6262
role-to-assume: arn:aws:iam::382284572497:role/GitHubActionsInfraRole
63+
role-session-name: GitHubActions-${{ github.run_id }}
6364
aws-region: us-east-1
64-
65+
audience: sts.amazonaws.com
66+
6567
- name: Setup Terraform
6668
uses: hashicorp/[email protected]
6769
with:

0 commit comments

Comments
 (0)