Skip to content

Commit aeea640

Browse files
Update test cleanup sweeper to always use fresh credentials (#2028)
1 parent 8794c9c commit aeea640

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: .github/workflows/aws-ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ jobs:
3939
uses: aws-actions/aws-codebuild-run-build@v1
4040
with:
4141
project-name: ${{ secrets.CI_TESTING_CODE_BUILD_PROJECT_NAME }}
42+
- name: Configure Test Sweeper Lambda Credentials
43+
if: always()
44+
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 #v4
45+
with:
46+
role-to-assume: ${{ steps.lambda.outputs.roleArn }}
47+
role-duration-seconds: 7200
48+
aws-region: us-west-2
4249
- name: Invoke Test Sweeper Lambda
4350
if: always()
4451
shell: pwsh
@@ -49,4 +56,3 @@ jobs:
4956
run: |
5057
$buildId = "${{ steps.codebuild.outputs.aws-build-id }}"
5158
echo $buildId
52-

0 commit comments

Comments
 (0)