Skip to content

Commit 655507f

Browse files
committed
Configure credentials before installing deps
1 parent b9cc8ec commit 655507f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/Test-CI-main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ jobs:
9898
restore-keys: |
9999
${{ runner.os }}-venv-
100100
101+
# Configure AWS credentials
102+
- name: Configure AWS Credentials
103+
uses: aws-actions/configure-aws-credentials@v4.0.2
104+
with:
105+
role-to-assume: ${{ secrets.AWS_ROLE }}
106+
aws-region: us-east-1
107+
mask-aws-account-id: true
108+
101109
- name: Install dependencies
102110
if: steps.cache-pip.outputs.cache-hit != 'true'
103111
run: |
@@ -122,14 +130,6 @@ jobs:
122130
#
123131
# Setup Environment
124132
#
125-
# Configure AWS credentials
126-
- name: Configure AWS Credentials
127-
uses: aws-actions/configure-aws-credentials@v4.0.2
128-
with:
129-
role-to-assume: ${{ secrets.AWS_ROLE }}
130-
aws-region: us-east-1
131-
mask-aws-account-id: true
132-
133133
# Set authentication with M2M token
134134
- name: Set authentication
135135
run: .github/scripts/get_m2m_token.sh

0 commit comments

Comments
 (0)