1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

forgejo/workflows: use explicit token with issue write permission

This commit is contained in:
Timo Rothenpieler
2025-07-26 19:32:12 +02:00
parent 631bb6c6e8
commit 29368ccb48

View File

@ -4,11 +4,6 @@ on:
issues:
types: [opened, edited]
permissions:
contents: read
pull-requests: write
issues: write
jobs:
pr_labeler:
runs-on: utilities
@ -20,9 +15,11 @@ jobs:
if: ${{ forge.event_name == 'pull_request_target' }}
with:
configuration-path: .forgejo/labeler/labeler.yml
repo-token: ${{ secrets.AUTOLABELER_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 }}