hamlet-io / executor-bash

Executor for hamlet based on bash
GNU General Public License v3.0
0 stars 4 forks source link

fix: env credential switching #285

Closed roleyfoley closed 2 years ago

roleyfoley commented 2 years ago

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: