Skip to content

Commit 87ce79c

Browse files
authored
Source BASH_ENV after token creation (#231)
1 parent 451552f commit 87ce79c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scripts/assume_role_with_web_identity.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ if [ -z "${CIRCLE_OIDC_TOKEN_V2}" ] || [ -z "${CIRCLE_OIDC_TOKEN}" ]; then
3131
echo 'export CIRCLE_OIDC_TOKEN="'"$CIRCLE_OIDC_TOKEN"'"' >> "$BASH_ENV"
3232
echo 'export CIRCLE_OIDC_TOKEN_V2="'"$CIRCLE_OIDC_TOKEN_V2"'"' >> "$BASH_ENV"
3333
TOKEN_SETUP_SUCCESS=true
34+
source "$BASH_ENV"
3435
break
3536
fi
3637
echo "Waiting 1 second before retry"

0 commit comments

Comments
 (0)