We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a633ed5 commit fc72bd3Copy full SHA for fc72bd3
index.js
@@ -1,7 +1,6 @@
1
const core = require('@actions/core');
2
const aws = require('aws-sdk');
3
const assert = require('assert');
4
-const util = require('util');
5
6
// The max time that a GitHub action is allowed to run is 6 hours.
7
// That seems like a reasonable default to use if no role duration is defined.
@@ -131,10 +130,9 @@ async function exportAccountId(maskAccountId, region) {
131
130
}
132
133
function getStsClient(region) {
134
- const endpoint = util.format('https://sts.%s.amazonaws.com', region);
135
return new aws.STS({
136
region,
137
- endpoint,
+ stsRegionalEndpoints: 'regional',
138
customUserAgent: USER_AGENT
139
});
140
0 commit comments