From f21f507de2002c98810e37ba520dd4cb02be32cc Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Thu, 12 Nov 2026 10:21:26 +0000 Subject: [PATCH] .github: run vouch only on vouch commands Every issue comment minted the App token, which bypasses the ruleset. --- .github/workflows/vouch-manage-by-issue.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/vouch-manage-by-issue.yml b/.github/workflows/vouch-manage-by-issue.yml index 9e534674c..aefaf0d41 100644 --- a/.github/workflows/vouch-manage-by-issue.yml +++ b/.github/workflows/vouch-manage-by-issue.yml @@ -13,6 +13,11 @@ concurrency: jobs: manage: + # Any comment fires this; only commands should mint the App token. + if: >- + contains(github.event.comment.body, '!vouch') || + contains(github.event.comment.body, '!denounce') || + contains(github.event.comment.body, '!unvouch') runs-on: ubuntu-latest steps: # The bot App's token, not GITHUB_TOKEN: the App is the ruleset bypass