Unified · Split
| @@ -4,11 +4,6 @@ on: · 3 unmodified lines | ||
| 4 | 4 | issues: |
| 5 | 5 | types: [opened, edited] |
| 6 | 6 | |
| 7 | −permissions: | |
| 8 | − contents: read | |
| 9 | − pull-requests: write | |
| 10 | − issues: write | |
| 11 | − | |
| 12 | 7 | jobs: |
| 13 | 8 | pr_labeler: |
| 14 | 9 | runs-on: utilities |
| @@ -20,9 +15,11 @@ jobs: · 5 unmodified lines | ||
| 20 | 15 | if: ${{ forge.event_name == 'pull_request_target' }} |
| 21 | 16 | with: |
| 22 | 17 | configuration-path: .forgejo/labeler/labeler.yml |
| 18 | + repo-token: ${{ secrets.AUTOLABELER_TOKEN }} | |
| 23 | 19 | - name: Label by title-match |
| 24 | 20 | uses: https://github.com/actions/github-script@v7 |
| 25 | 21 | with: |
| 26 | 22 | script: | |
| 27 | 23 | const script = require('.forgejo/labeler/labeler.js') |
| 28 | 24 | await script({github, context}) |
| 25 | + github-token: ${{ secrets.AUTOLABELER_TOKEN }} | |