Skip to content

Commit 650d068

Browse files
authored
chore: switch to aws roles in github action (#793)
1 parent 66b7532 commit 650d068

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/mirror.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,20 @@ jobs:
2828
permissions:
2929
contents: read
3030
packages: write
31+
id-token: write
3132
steps:
3233
- id: strip
3334
run: |
3435
TAG=${{ matrix.src }}
3536
echo "dst=${TAG##*/}" >> $GITHUB_OUTPUT
37+
- name: configure aws credentials
38+
uses: aws-actions/configure-aws-credentials@v1
39+
with:
40+
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
41+
aws-region: us-east-1
3642
- uses: docker/login-action@v2
3743
with:
3844
registry: public.ecr.aws
39-
username: ${{ secrets.PROD_ACCESS_KEY_ID }}
40-
password: ${{ secrets.PROD_SECRET_ACCESS_KEY }}
4145
- uses: docker/login-action@v2
4246
with:
4347
registry: ghcr.io

0 commit comments

Comments
 (0)