fix: replace - with _ (#246)

This commit is contained in:
Omochice
2025-05-04 06:58:01 +09:00
committed by GitHub
parent db3cdf4098
commit 333678481b
3 changed files with 3 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ export function getPermissionsFromInputs(env) {
if (!key.startsWith("INPUT_PERMISSION-")) return permissions;
if (!value) return permissions;
const permission = key.slice("INPUT_PERMISSION-".length).toLowerCase();
const permission = key.slice("INPUT_PERMISSION-".length).toLowerCase()
.replaceAll(/-/g, "_");
// Inherit app permissions if no permissions inputs are set
if (permissions === undefined) {