Skip to content

Commit e13421f

Browse files
committed
Add custom user agent
1 parent a9cc37a commit e13421f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ async function run() {
3232
core.exportVariable('AWS_REGION', region);
3333

3434
// Get the AWS account ID
35-
const sts = new aws.STS();
35+
const sts = new aws.STS({
36+
customUserAgent: 'configure-aws-credentials-for-github-actions'
37+
});
3638
const identity = await sts.getCallerIdentity().promise();
3739
const accountId = identity.Account;
3840
core.setOutput('aws-account-id', accountId);

0 commit comments

Comments
 (0)