Skip to content

Commit

Permalink
Use multiline input for managed policies
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitar-hristov committed Jun 4, 2023
1 parent e3e20b7 commit de5aaf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ async function run() {
const webIdentityTokenFile = core.getInput('web-identity-token-file', { required: false });
const proxyServer = core.getInput('http-proxy', { required: false });
const inlineSessionPolicy = core.getInput('inline-session-policy', { required: false });
const managedSessionPolicies = core.getInput('managed-session-policies', { required: false })
const managedSessionPolicies = core.getMultilineInput('managed-session-policies', { required: false })

if (!region.match(REGION_REGEX)) {
throw new Error(`Region is not valid: ${region}`);
Expand Down
2 changes: 1 addition & 1 deletion index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ describe('Configure AWS Credentials', () => {
})
});

test('inline session policy provided', async () => {
test('managed session policy provided', async () => {
const MANAGED_SESSION_POLICIES = ["arn:aws:iam::111111111111:policy/foo", "arn:aws:iam::111111111111:policy/bar"];
core.getInput = jest
.fn()
Expand Down

0 comments on commit de5aaf0

Please sign in to comment.