Skip to content

Commit

Permalink
Merge pull request #4 from kwilczynski/bugfix/correct-eval-usage-unde…
Browse files Browse the repository at this point in the history
…r-ash-shell

Fix usage of eval under Ash shell in the Alpine image.
  • Loading branch information
tdi authored Dec 3, 2019
2 parents 13dc6e0 + adfedb1 commit d8f6671
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
10 changes: 6 additions & 4 deletions assume-role-arn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ fi
ASSUME_ROLE_ARN="$ASSUME_ROLE_ARN $*"
set -- "$ASSUME_ROLE_ARN"

eval "$ASSUME_ROLE_ARN"
eval "$($ASSUME_ROLE_ARN)"

echo "::set-env name=AWS_ACCESS_KEY_ID::${AWS_ACCESS_KEY_ID}"
echo "::set-env name=AWS_SECRET_ACCESS_KEY::${AWS_SECRET_ACCESS_KEY}"
echo "::set-env name=AWS_SESSION_TOKEN::${AWS_SESSION_TOKEN}"
if [ -n "$AWS_ACCESS_KEY_ID" ]; then
echo "::set-env name=AWS_ACCESS_KEY_ID::${AWS_ACCESS_KEY_ID}"
echo "::set-env name=AWS_SECRET_ACCESS_KEY::${AWS_SECRET_ACCESS_KEY}"
echo "::set-env name=AWS_SESSION_TOKEN::${AWS_SESSION_TOKEN}"
fi
24 changes: 0 additions & 24 deletions entrypoint.sh

This file was deleted.

0 comments on commit d8f6671

Please sign in to comment.