Skip to content

Commit 273fdc5

Browse files
fix permissions for style bot (#3012)
1 parent ddec2ab commit 273fdc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/style-bot-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
username: comment_user
5353
});
5454
55-
const authorized = ['admin', 'maintain', 'push'].includes(permission.permission);
55+
const authorized = ['admin', 'maintain', 'push', 'write'].includes(permission.permission);
5656
console.log(`User ${comment_user} has permission level: ${permission.permission}, authorized: ${authorized} (only users with at least write access are allowed to run this action)`);
5757
core.setOutput('has_permission', authorized);
5858

0 commit comments

Comments
 (0)