Add custom user agent

This commit is contained in:
Clare Liguori 2019-11-03 18:41:05 -08:00
commit e13421fee5
2 changed files with 6 additions and 2 deletions

4
dist/index.js vendored
View file

@ -134,7 +134,9 @@ async function run() {
core.exportVariable('AWS_REGION', region);
// Get the AWS account ID
const sts = new aws.STS();
const sts = new aws.STS({
customUserAgent: 'configure-aws-credentials-for-github-actions'
});
const identity = await sts.getCallerIdentity().promise();
const accountId = identity.Account;
core.setOutput('aws-account-id', accountId);

View file

@ -32,7 +32,9 @@ async function run() {
core.exportVariable('AWS_REGION', region);
// Get the AWS account ID
const sts = new aws.STS();
const sts = new aws.STS({
customUserAgent: 'configure-aws-credentials-for-github-actions'
});
const identity = await sts.getCallerIdentity().promise();
const accountId = identity.Account;
core.setOutput('aws-account-id', accountId);