Skip to content

Commit 98baf0e

Browse files
authored
Merge pull request #314 from rstudio/github-actions-ci
update GH Actions to use OpenID Connect instead of fixed creds
2 parents 3733cbf + 846050c commit 98baf0e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ jobs:
8989
asset_name: ${{ steps.create_dist.outputs.whl_basename }}
9090
asset_content_type: application/x-wheel+zip
9191
- uses: aws-actions/configure-aws-credentials@v1
92+
id: creds
9293
with:
93-
aws-access-key-id: ${{ secrets.AWS_ID }}
94-
aws-secret-access-key: ${{ secrets.AWS_SECRET }}
95-
aws-region: us-east-1
94+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
95+
aws-region: ${{ secrets.AWS_REGION }}
9696
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
9797
run: make sync-latest-to-s3
9898
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
@@ -119,10 +119,10 @@ jobs:
119119
name: docs
120120
path: docs/site/
121121
- uses: aws-actions/configure-aws-credentials@v1
122+
id: creds
122123
with:
123-
aws-access-key-id: ${{ secrets.AWS_ID }}
124-
aws-secret-access-key: ${{ secrets.AWS_SECRET }}
125-
aws-region: us-east-1
124+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
125+
aws-region: ${{ secrets.AWS_REGION }}
126126
- if: github.event_name == 'push' && github.ref == 'refs/heads/master'
127127
run: make sync-latest-docs-to-s3
128128
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)