From e4c1522a54b6d50ce153d9ac55da658f98dcaaed Mon Sep 17 00:00:00 2001 From: Diego Pascual Date: Wed, 25 Oct 2023 08:57:01 +0200 Subject: [PATCH] refactor: use the role via secret --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f7bc34c2..80a6d9c8 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -25,7 +25,7 @@ jobs: - name: Deploy to AWS uses: ./.github/actions/deploy with: - aws_role: arn:aws:iam::732785771697:role/github/x-archetype20231004105928694200000001 + aws_role: ${{ secrets.AWS_ROLE_TEST_ACCOUNT }} aws_deploy_path: ${{ secrets.TEST_BUCKET }}/preview/${{ github.event.number }} aws_s3_sync_args: '--include \"*\" --exclude \"*/*\"' cloudfront_distribution_id: ${{ secrets.CLOUDFRONT_ID_TEST }}