Skip to content

Commit 87f83c6

Browse files
fix: Use bot token instead of PR author
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
1 parent 2a74d30 commit 87f83c6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

workflow-templates/ai-policy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Collect PR commit messages
3333
id: collect
3434
env:
35-
GH_TOKEN: ${{ github.token }}
35+
GH_TOKEN: ${{ COMMAND_BOT_PAT }}
3636
COMMITS_URL: ${{ github.event.pull_request.commits_url }}
3737
run: |
3838
set -euo pipefail
@@ -125,7 +125,7 @@ jobs:
125125
- name: Create 'AI assisted' label if absent
126126
if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true'
127127
env:
128-
GH_TOKEN: ${{ github.token }}
128+
GH_TOKEN: ${{ COMMAND_BOT_PAT }}
129129
run: |
130130
gh api "repos/${{ github.repository }}/labels" \
131131
--method POST \
@@ -137,7 +137,7 @@ jobs:
137137
- name: Label PR as AI assisted
138138
if: steps.ai_trailers.outputs.ai_assisted == 'true' || steps.agent_signoff.outputs.agent_signoff == 'true' || steps.co_authored.outputs.co_authored == 'true'
139139
env:
140-
GH_TOKEN: ${{ github.token }}
140+
GH_TOKEN: ${{ COMMAND_BOT_PAT }}
141141
run: |
142142
gh pr edit "${{ github.event.pull_request.number }}" \
143143
--repo "${{ github.repository }}" \

0 commit comments

Comments
 (0)