Bug fix (non-breaking change which fixes an issue)
Description
Only update the credentials profile for environment credentials when the source variables have content
Motivation and Context
When setCredentials was called during a task where it needed to switch accounts the env credentials were being wiped as we clear the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables in order to use profiles
Intent of Change
Description
Only update the credentials profile for environment credentials when the source variables have content
Motivation and Context
When setCredentials was called during a task where it needed to switch accounts the env credentials were being wiped as we clear the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables in order to use profiles
How Has This Been Tested?
Tested locally
Related Changes
Prerequisite PRs:
Dependent PRs:
Consumer Actions: