From 98f64f69c183fab4bea2d309da426e9420814df0 Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Tue, 30 Jun 2026 10:37:01 +0200 Subject: [PATCH] fix: Use bot token instead of PR author Signed-off-by: Andy Scherzinger --- workflow-templates/ai-policy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow-templates/ai-policy.yml b/workflow-templates/ai-policy.yml index 4ddfe34..acc8d30 100644 --- a/workflow-templates/ai-policy.yml +++ b/workflow-templates/ai-policy.yml @@ -32,7 +32,7 @@ jobs: - name: Collect PR commit messages id: collect env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} COMMITS_URL: ${{ github.event.pull_request.commits_url }} run: | set -euo pipefail @@ -125,7 +125,7 @@ jobs: - name: Create 'AI assisted' label if absent if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true' env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} run: | gh api "repos/${{ github.repository }}/labels" \ --method POST \ @@ -137,7 +137,7 @@ jobs: - name: Label PR as AI assisted if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true' env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }} run: | gh pr edit "${{ github.event.pull_request.number }}" \ --repo "${{ github.repository }}" \