ci(spam): fix permission check
This commit is contained in:
parent
47beafb836
commit
f9a331a505
1 changed files with 1 additions and 1 deletions
2
.github/scripts/close_spam.js
vendored
2
.github/scripts/close_spam.js
vendored
|
|
@ -3,7 +3,7 @@ module.exports = async ({ github, context }) => {
|
|||
...context.repo,
|
||||
username: context.actor
|
||||
});
|
||||
if (!data.permission.includes("triage")) {
|
||||
if (!data.user.permissions.triage) {
|
||||
await github.log.error("Workflow called with insufficient permissions!");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue