mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-04 06:15:07 +09:00
Add custom user agent
This commit is contained in:
Vendored
+3
-1
@@ -134,7 +134,9 @@ async function run() {
|
|||||||
core.exportVariable('AWS_REGION', region);
|
core.exportVariable('AWS_REGION', region);
|
||||||
|
|
||||||
// Get the AWS account ID
|
// 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 identity = await sts.getCallerIdentity().promise();
|
||||||
const accountId = identity.Account;
|
const accountId = identity.Account;
|
||||||
core.setOutput('aws-account-id', accountId);
|
core.setOutput('aws-account-id', accountId);
|
||||||
|
|||||||
@@ -32,7 +32,9 @@ async function run() {
|
|||||||
core.exportVariable('AWS_REGION', region);
|
core.exportVariable('AWS_REGION', region);
|
||||||
|
|
||||||
// Get the AWS account ID
|
// 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 identity = await sts.getCallerIdentity().promise();
|
||||||
const accountId = identity.Account;
|
const accountId = identity.Account;
|
||||||
core.setOutput('aws-account-id', accountId);
|
core.setOutput('aws-account-id', accountId);
|
||||||
|
|||||||
Reference in New Issue
Block a user