Skip to content

Commit bdd0ad2

Browse files
committed
Update how AWS creds are resolved
1 parent 5fbdd2e commit bdd0ad2

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/actions/setup-kat/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ description: >
55
runs:
66
using: composite
77
steps:
8-
- name: Configure AWS Credentials
9-
uses: aws-actions/configure-aws-credentials@v4
10-
with:
11-
role-to-assume: $CI_AWS_ROLE_ARN
12-
aws-region: us-west-2
138
- name: Install AWS CLI
149
shell: bash
1510
run: |

.github/workflows/kat-verification.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ concurrency:
1010
group: kat-pr-${{ github.ref }}
1111
cancel-in-progress: true
1212

13+
permissions:
14+
id-token: write
15+
contents: read
16+
1317
env:
1418
RUN: ${{ github.run_id }}-${{ github.run_number }}
1519
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dkotlin.incremental=false"
@@ -22,12 +26,19 @@ jobs:
2226
uses: actions/checkout@v4
2327
with:
2428
path: 'aws-sdk-kotlin'
29+
2530
- name: Setup Build
2631
uses: ./aws-sdk-kotlin/.github/actions/setup-build
32+
33+
- name: Configure AWS Credentials
34+
uses: aws-actions/configure-aws-credentials@v4
35+
with:
36+
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
37+
aws-region: us-west-2
38+
2739
- name: Setup kat
2840
uses: ./aws-sdk-kotlin/.github/actions/setup-kat
29-
env:
30-
CI_AWS_ROLE_ARN: ${{ secrets.CI_AWS_ROLE_ARN }}
41+
3142
- name: Verify
3243
working-directory: ./aws-sdk-kotlin
3344
shell: bash

0 commit comments

Comments
 (0)