Skip to content

Commit 11792c3

Browse files
authored
Merge pull request #91 from scribd/helen/SERF-3090/oidc
[SERF-3090] Use role base access in AWS deployment
2 parents 9e3d01f + 2accd49 commit 11792c3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ env:
77
DOCKER_BUILDKIT: 1
88
DOCKER_CACHE_PATH: ${{ github.workspace }}/tmp/docker-cache
99

10+
permissions:
11+
id-token: write
12+
contents: read
13+
actions: read
14+
1015
jobs:
1116
release:
1217
name: Release
@@ -27,10 +32,9 @@ jobs:
2732
uses: rlespinasse/[email protected]
2833

2934
- name: Configure AWS credentials
30-
uses: aws-actions/configure-aws-credentials@v2
35+
uses: aws-actions/configure-aws-credentials@v3
3136
with:
32-
aws-access-key-id: ${{ secrets.DEPLOYER_PRODUCTION_ACCESS_KEY }}
33-
aws-secret-access-key: ${{ secrets.DEPLOYER_PRODUCTION_SECRET_KEY }}
37+
role-to-assume: ${{ secrets.DEPLOYER_PRODUCTION_ROLE_ARN }}
3438
aws-region: ${{ env.AWS_REGION }}
3539

3640
- name: Login to Amazon ECR

0 commit comments

Comments
 (0)