Skip to content

Commit a3a0a74

Browse files
committed
test: aws creds
1 parent 9b3b0d2 commit a3a0a74

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/testinfra-only.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ on:
1111
description: 'AMI name to test'
1212
required: true
1313
type: string
14-
push:
15-
branches:
16-
- sam/build-ami-local
1714
env:
1815
AWS_REGION: ap-southeast-1
1916
AWS_DEFAULT_REGION: ap-southeast-1
@@ -22,6 +19,13 @@ jobs:
2219
runs-on: ubuntu-latest
2320
steps:
2421
- uses: actions/checkout@v4
22+
23+
- name: Configure AWS credentials
24+
uses: aws-actions/configure-aws-credentials@v4
25+
with:
26+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-role
27+
aws-region: ${{ env.AWS_REGION }}
28+
2529
- name: Run tests
2630
timeout-minutes: 10
2731
env:

0 commit comments

Comments
 (0)