diff --git a/dist/main/index.js b/dist/main/index.js index 0b20c1d..39e4c4f 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -43074,12 +43074,12 @@ function jsonifyInput() { let authorized = false; const authorizedUsers = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("authorized-users"); if (Boolean(authorizedUsers)) { - config.authorized_github_users = authorizedUsers.split(",").filter((u) => String(u).trim()); + config.authorized_github_users = authorizedUsers.split(",").map((u) => String(u).trim()); authorized = true; } const authorizedKeys = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput("authorized-keys"); if (Boolean(authorizedKeys)) { - config.authorized_keys = authorizedKeys.split(",").filter((k) => String(k).trim()); + config.authorized_keys = authorizedKeys.split(",").map((k) => String(k).trim()); authorized = true; } if (!authorized) { diff --git a/main.ts b/main.ts index 15890a0..5f892ae 100644 --- a/main.ts +++ b/main.ts @@ -138,13 +138,13 @@ function jsonifyInput(): string { let authorized: Boolean = false; const authorizedUsers: string = core.getInput("authorized-users"); if (Boolean(authorizedUsers)) { - config.authorized_github_users = authorizedUsers.split(",").filter((u) => String(u).trim()); + config.authorized_github_users = authorizedUsers.split(",").map((u) => String(u).trim()); authorized = true; } const authorizedKeys: string = core.getInput("authorized-keys"); if (Boolean(authorizedKeys)) { - config.authorized_keys = authorizedKeys.split(",").filter((k) => String(k).trim()); + config.authorized_keys = authorizedKeys.split(",").map((k) => String(k).trim()); authorized = true; }