Skip to content

Commit 45bee1a

Browse files
Move CI to OIDC role assumption
1 parent 1570240 commit 45bee1a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ jobs:
1717
with:
1818
token: ${{ secrets.GITHUB_TOKEN }}
1919
build_only: ${{ github.ref != 'refs/heads/master' }}
20+
- name: Configure AWS credentials
21+
if: github.ref == 'refs/heads/master'
22+
uses: aws-actions/configure-aws-credentials@v1
23+
with:
24+
role-to-assume: arn:aws:iam::890664054962:role/forge-rust-lang-org-ci
25+
aws-region: us-east-1
2026
- run: aws cloudfront create-invalidation --distribution-id E12A3GKHZSREHP --paths "/*"
2127
if: github.ref == 'refs/heads/master'
22-
env:
23-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
24-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)