ci: Update policy check to org-latest

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2026-07-06 15:51:57 +02:00
parent 521f59caa5
commit 9f7f5a4dc3
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -32,7 +32,9 @@ jobs:
- name: Collect PR commit messages
id: collect
env:
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
# Fall back to the default token when the PAT is unavailable
# (e.g. Dependabot- or fork-triggered runs don't receive Actions secrets)
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT || github.token }}
COMMITS_URL: ${{ github.event.pull_request.commits_url }}
run: |
set -euo pipefail
@ -125,7 +127,9 @@ 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: ${{ secrets.COMMAND_BOT_PAT }}
# Fall back to the default token when the PAT is unavailable
# (e.g. Dependabot- or fork-triggered runs don't receive Actions secrets)
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT || github.token }}
run: |
gh api "repos/${{ github.repository }}/labels" \
--method POST \
@ -137,7 +141,9 @@ 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: ${{ secrets.COMMAND_BOT_PAT }}
# Fall back to the default token when the PAT is unavailable
# (e.g. Dependabot- or fork-triggered runs don't receive Actions secrets)
GH_TOKEN: ${{ secrets.COMMAND_BOT_PAT || github.token }}
run: |
gh api "repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels" \
--method POST \