Skip to content

Commit 8a11aa1

Browse files
committed
fix typo
1 parent b76c268 commit 8a11aa1

File tree

6 files changed

+17
-9
lines changed

6 files changed

+17
-9
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ inputs:
3131
Role session name
3232
default: 'github-action'
3333
required: false
34-
export_environment_variables:
34+
export-environment-variables:
3535
description: |-
3636
If true, the action will export common environment variables which are
3737
known to be consumed by popular downstream libraries and tools, including:

dist/index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15656,7 +15656,7 @@ function main() {
1565615656
const oidcArn = core.getInput('oidc-provider-arn', { required: true });
1565715657
const durationSeconds = Number(core.getInput('role-duration-seconds', { required: false }));
1565815658
const sessionName = core.getInput('role-session-name', { required: false });
15659-
const exportEnvs = core.getBooleanInput('export_environment_variables', { required: false });
15659+
const exportEnvs = core.getBooleanInput('export-environment-variables', { required: false });
1566015660
const { accessKeyId, accessKeySecret, securityToken } = yield assumeRole(region, roleArn, oidcArn, oidcToken, durationSeconds, sessionName);
1566115661
if (exportEnvs) {
1566215662
// @ts-ignore
@@ -15710,8 +15710,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
1571015710
exports.exportEnvs = void 0;
1571115711
const core = __importStar(__nccwpck_require__(2186));
1571215712
function exportEnvs(accessKeyId, accessKeySecret, securityToken) {
15713-
core.setSecret(accessKeySecret);
15714-
core.setSecret(securityToken);
15713+
if (accessKeySecret !== "") {
15714+
core.setSecret(accessKeySecret);
15715+
}
15716+
if (securityToken !== "") {
15717+
core.setSecret(securityToken);
15718+
}
1571515719
core.exportVariable('ALIBABA_CLOUD_ACCESS_KEY_ID', accessKeyId);
1571615720
core.exportVariable('ALICLOUD_ACCESS_KEY', accessKeyId);
1571715721
core.exportVariable('ALIBABACLOUD_ACCESS_KEY_ID', accessKeyId);

dist/index.js.map

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

dist/post/index.js

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/post/index.js.map

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

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async function main() {
5353
const oidcArn = core.getInput('oidc-provider-arn', { required: true });
5454
const durationSeconds = Number(core.getInput('role-duration-seconds', { required: false }));
5555
const sessionName = core.getInput('role-session-name', { required: false });
56-
const exportEnvs = core.getBooleanInput('export_environment_variables', { required: false });
56+
const exportEnvs = core.getBooleanInput('export-environment-variables', { required: false });
5757

5858
const { accessKeyId, accessKeySecret, securityToken } = await assumeRole(
5959
region, roleArn, oidcArn, oidcToken, durationSeconds, sessionName);

0 commit comments

Comments
 (0)