You've already forked FFmpeg
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:
@ -4,11 +4,6 @@ on:
|
|||||||
issues:
|
issues:
|
||||||
types: [opened, edited]
|
types: [opened, edited]
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
issues: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pr_labeler:
|
pr_labeler:
|
||||||
runs-on: utilities
|
runs-on: utilities
|
||||||
@ -20,9 +15,11 @@ jobs:
|
|||||||
if: ${{ forge.event_name == 'pull_request_target' }}
|
if: ${{ forge.event_name == 'pull_request_target' }}
|
||||||
with:
|
with:
|
||||||
configuration-path: .forgejo/labeler/labeler.yml
|
configuration-path: .forgejo/labeler/labeler.yml
|
||||||
|
repo-token: ${{ secrets.AUTOLABELER_TOKEN }}
|
||||||
- name: Label by title-match
|
- name: Label by title-match
|
||||||
uses: https://github.com/actions/github-script@v7
|
uses: https://github.com/actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const script = require('.forgejo/labeler/labeler.js')
|
const script = require('.forgejo/labeler/labeler.js')
|
||||||
await script({github, context})
|
await script({github, context})
|
||||||
|
github-token: ${{ secrets.AUTOLABELER_TOKEN }}
|
||||||
|
Reference in New Issue
Block a user