History

forgejo/workflows: use explicit token with issue write permission

Timo Rothenpieler committed 1 year ago

Commit 29368cc1 parent 631bb6c1 file · +2 −5Browse files

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t