Skip to content

Commit bf5a044

Browse files
Revert "BUILD-9956 fix post run aws auth"
This reverts commit 881bd80.
1 parent f3aa822 commit bf5a044

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

action.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,6 @@ runs:
155155
GITHUB_REPOSITORY: ${{ github.repository }}
156156
run: $GITHUB_ACTION_PATH/scripts/prepare-keys.sh
157157

158-
- uses: aws-actions/configure-aws-credentials@61815dcd50bd041e203e49132bacad1fd04d2708 # v5.1.1
159-
if: steps.cache-backend.outputs.cache-backend == 's3'
160-
with:
161-
aws-region: eu-central-1
162-
aws-access-key-id: ${{ steps.aws-auth.outputs.AWS_ACCESS_KEY_ID }}
163-
aws-secret-access-key: ${{ steps.aws-auth.outputs.AWS_SECRET_ACCESS_KEY }}
164-
aws-session-token: ${{ steps.aws-auth.outputs.AWS_SESSION_TOKEN }}
165158
- name: Cache on S3
166159
if: steps.cache-backend.outputs.cache-backend == 's3'
167160
uses: runs-on/cache@50350ad4242587b6c8c2baa2e740b1bc11285ff4 # v4.3.0
@@ -170,6 +163,9 @@ runs:
170163
RUNS_ON_S3_BUCKET_CACHE: sonarsource-s3-cache-${{ inputs.environment }}-bucket
171164
AWS_DEFAULT_REGION: eu-central-1
172165
AWS_REGION: eu-central-1
166+
AWS_ACCESS_KEY_ID: ${{ steps.aws-auth.outputs.AWS_ACCESS_KEY_ID }}
167+
AWS_SECRET_ACCESS_KEY: ${{ steps.aws-auth.outputs.AWS_SECRET_ACCESS_KEY }}
168+
AWS_SESSION_TOKEN: ${{ steps.aws-auth.outputs.AWS_SESSION_TOKEN }}
173169
with:
174170
path: ${{ inputs.path }}
175171
key: ${{ steps.prepare-keys.outputs.branch-key }}

0 commit comments

Comments
 (0)