aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2025-08-22 20:44:42 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2025-08-22 21:07:33 +0200
commit0f873fc07a2dec9f8738306b8b38dd7daafc7120 (patch)
tree73a9c7eeef93058b9cfe3365dfb73c203f4a8377
parent4e9a184d5c948ce89fc7cd0954c9e1600e776db9 (diff)
downloadffmpeg-0f873fc07a2dec9f8738306b8b38dd7daafc7120.tar.gz
forgejo/workflows: use built-in token for autolabeler whenever possible
-rw-r--r--.forgejo/workflows/autolabel.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.forgejo/workflows/autolabel.yml b/.forgejo/workflows/autolabel.yml
index cb4dac67aa..85afcdad03 100644
--- a/.forgejo/workflows/autolabel.yml
+++ b/.forgejo/workflows/autolabel.yml
@@ -18,11 +18,11 @@ jobs:
if: ${{ forge.event_name == 'pull_request_target' }}
with:
configuration-path: .forgejo/labeler/labeler.yml
- repo-token: ${{ secrets.AUTOLABELER_TOKEN }}
+ repo-token: ${{ forge.event_name == 'pull_request_target' && secrets.AUTOLABELER_TOKEN || forge.token }}
- name: Label by title-match
uses: https://github.com/actions/github-script@v7
with:
script: |
const script = require('.forgejo/labeler/labeler.js')
await script({github, context})
- github-token: ${{ secrets.AUTOLABELER_TOKEN }}
+ github-token: ${{ forge.event_name == 'pull_request_target' && secrets.AUTOLABELER_TOKEN || forge.token }}