mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-02 05:55:10 +09:00
fix: correct outputs for role chaining (#1633)
re-instantiate stsClient when roleChaining technically a breaking change
This commit is contained in:
+6
-2
@@ -36,9 +36,10 @@ class CredentialsClient {
|
||||
httpAgent: handler,
|
||||
});
|
||||
}
|
||||
this.roleChaining = props.roleChaining;
|
||||
}
|
||||
get stsClient() {
|
||||
if (!this._stsClient) {
|
||||
if (!this._stsClient || this.roleChaining) {
|
||||
const config = { customUserAgent: USER_AGENT };
|
||||
if (this.region !== undefined)
|
||||
config.region = this.region;
|
||||
@@ -756,7 +757,10 @@ async function run() {
|
||||
}
|
||||
(0, helpers_1.exportRegion)(region, outputEnvCredentials);
|
||||
// Instantiate credentials client
|
||||
const clientProps = { region };
|
||||
const clientProps = {
|
||||
region,
|
||||
roleChaining,
|
||||
};
|
||||
if (proxyServer)
|
||||
clientProps.proxyServer = proxyServer;
|
||||
if (noProxy)
|
||||
|
||||
Reference in New Issue
Block a user