From 33cad28751b5c35b3c1366667e6222f2408e6bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tarik=20Demirovi=C4=87?= Date: Tue, 7 May 2024 20:12:45 +0700 Subject: [PATCH] Update generalized-deploy.yaml to use IAM role (#689) * Update generalized-deploy.yaml to use IAM role * Update generalized-deploy.yaml --- .github/workflows/generalized-deploy.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generalized-deploy.yaml b/.github/workflows/generalized-deploy.yaml index 2db93a31..d40f6c70 100644 --- a/.github/workflows/generalized-deploy.yaml +++ b/.github/workflows/generalized-deploy.yaml @@ -10,15 +10,16 @@ jobs: push: name: Invoke Challenge By Pass Docker Build Pipeline runs-on: ubuntu-latest + permissions: + id-token: write + contents: read steps: - name: Checkout uses: actions/checkout@v2 - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: - aws-access-key-id: ${{ secrets.GDBP_AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.GDBP_AWS_SECRET_ACCESS_KEY }} + role-to-assume: ${{ secrets.GDBP_AWS_IAM_ROLE_ARN }} aws-region: us-west-2 - commit: ${{ github.sha }} - name: Challenge Bypass Server Deployments - uses: brave-intl/general-docker-build-pipeline-action@v1.0.9 \ No newline at end of file + uses: brave-intl/general-docker-build-pipeline-action@v1.0.9