Skip to content

Commit 30a2a27

Browse files
committed
default to no env vars
1 parent ecd3e6c commit 30a2a27

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.js

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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export async function run() {
4949
});
5050
const roleChaining = getBooleanInput('role-chaining', { required: false });
5151
const outputCredentials = getBooleanInput('output-credentials', { required: false });
52-
const outputEnvCredentials = getBooleanInput('output-env-credentials', { required: false, default: true });
52+
//default to always outputting environment credentials unless profile is specified. if profile is specified, default to
53+
//no environment credentials (but still output them if the user specifically requests it).
54+
const outputEnvCredentials = getBooleanInput('output-env-credentials', { required: false, default: !awsProfile });
5355
const unsetCurrentCredentials = getBooleanInput('unset-current-credentials', { required: false });
5456
let disableRetry = getBooleanInput('disable-retry', { required: false });
5557
const specialCharacterWorkaround = getBooleanInput('special-characters-workaround', { required: false });

0 commit comments

Comments
 (0)