Skip to content

Commit fec66e6

Browse files
authored
Merge pull request #1445 from damvinod/master
Using GHA OIDC IAM role to sync the artifacts with S3 bucket.
2 parents 6f37f9b + 3d7d4d1 commit fec66e6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
# Push events to branches matching refs/heads/release-*
1010
- 'release-*'
1111

12+
permissions:
13+
id-token: write
14+
contents: write
15+
1216
env:
1317
RUN_EXTERNAL_CHECKS: true
1418

@@ -54,12 +58,15 @@ jobs:
5458
runs-on: ubuntu-latest
5559
env:
5660
S3_BUCKET: "${{ secrets.S3_BUCKET }}"
57-
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
58-
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
5961
steps:
6062
- uses: actions/checkout@v4
6163
with:
6264
fetch-depth: 0
65+
- name: Configure aws credentials
66+
uses: aws-actions/configure-aws-credentials@v4
67+
with:
68+
role-to-assume: "${{ secrets.AWS_ROLE_TO_ASSUME }}"
69+
aws-region: "${{ secrets.AWS_REGION }}"
6370
- name: Set up Ruby
6471
uses: ruby/setup-ruby@v1
6572
with:

0 commit comments

Comments
 (0)