build(release): 2.0.6 [skip ci]
## [2.0.6](https://github.com/actions/create-github-app-token/compare/v2.0.5...v2.0.6) (2025-05-03) ### Bug Fixes * replace `-` with `_` ([#246](https://github.com/actions/create-github-app-token/issues/246)) ([3336784](333678481b))
This commit is contained in:
2
dist/main.cjs
vendored
2
dist/main.cjs
vendored
@@ -42400,7 +42400,7 @@ function getPermissionsFromInputs(env) {
|
||||
return Object.entries(env).reduce((permissions2, [key, value]) => {
|
||||
if (!key.startsWith("INPUT_PERMISSION-")) return permissions2;
|
||||
if (!value) return permissions2;
|
||||
const permission = key.slice("INPUT_PERMISSION-".length).toLowerCase();
|
||||
const permission = key.slice("INPUT_PERMISSION-".length).toLowerCase().replaceAll(/-/g, "_");
|
||||
if (permissions2 === void 0) {
|
||||
return { [permission]: value };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user