[FFmpeg-cvslog] forgejo/workflows: use explicit token with issue write permission

Timo Rothenpieler git at videolan.org
Sat Jul 26 20:37:33 EEST 2025


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sat Jul 26 19:32:12 2025 +0200| [29368ccb480d598dc342eb33e006940bc84551af] | committer: Timo Rothenpieler

forgejo/workflows: use explicit token with issue write permission

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29368ccb480d598dc342eb33e006940bc84551af
---

 .forgejo/workflows/autolabel.yml | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/.forgejo/workflows/autolabel.yml b/.forgejo/workflows/autolabel.yml
index 0009550c05..3eb8cd52ba 100644
--- a/.forgejo/workflows/autolabel.yml
+++ b/.forgejo/workflows/autolabel.yml
@@ -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 }}



More information about the ffmpeg-cvslog mailing list