From 7571bd407251f99d0c123ca8d55af52ad34d893d Mon Sep 17 00:00:00 2001 From: Toni <32644679+dethmasque@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:48:06 -0500 Subject: [PATCH 1/2] update Github creds in main workflow --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 142d133b..9b460ace 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -119,10 +119,10 @@ jobs: name: docs path: docs/site/ - uses: aws-actions/configure-aws-credentials@v1 + id: creds with: - aws-access-key-id: ${{ secrets.AWS_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET }} - aws-region: us-east-1 + role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} + aws-region: ${{ secrets.AWS_REGION }} - if: github.event_name == 'push' && github.ref == 'refs/heads/master' run: make sync-latest-docs-to-s3 - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') From affa80f3bc34b2b63bec7e50bc3d7840a6dfefaa Mon Sep 17 00:00:00 2001 From: Toni <32644679+dethmasque@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:50:47 -0500 Subject: [PATCH 2/2] edit the same file again for good measure --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b460ace..effacf5c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -89,10 +89,10 @@ jobs: asset_name: ${{ steps.create_dist.outputs.whl_basename }} asset_content_type: application/x-wheel+zip - uses: aws-actions/configure-aws-credentials@v1 + id: creds with: - aws-access-key-id: ${{ secrets.AWS_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET }} - aws-region: us-east-1 + role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} + aws-region: ${{ secrets.AWS_REGION }} - if: github.event_name == 'push' && github.ref == 'refs/heads/master' run: make sync-latest-to-s3 - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')