Commit 84754665 authored by Clement Bois's avatar Clement Bois
Browse files

Revert "fix: replace here-string with pipe"

This reverts commit a17a87f1
parent 364444dd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -482,12 +482,12 @@ stages:
      log_info "Obtaining temporary credentials with OpenID connect..."
      # see: https://docs.gitlab.com/ci/cloud_services/aws/
      # shellcheck disable=SC2046,SC2183
      aws sts assume-role-with-web-identity \
      read -r AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN <<< $(aws sts assume-role-with-web-identity \
        --role-arn "$oidc_role_arn" \
        --role-session-name "GitLabRunner-${CI_PROJECT_ID}-${CI_PIPELINE_ID}" \
        --web-identity-token "${AWS_JWT:-$CI_JOB_JWT_V2}" \
        --query 'Credentials.[AccessKeyId,SecretAccessKey,SessionToken]' \
        --output text | read -r AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN
        --output text)
      export AWS_ACCESS_KEY_ID
      export AWS_SECRET_ACCESS_KEY
      export AWS_SESSION_TOKEN