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
44 issues:
55 types: [opened, edited]
66
7−permissions:
8− contents: read
9− pull-requests: write
10− issues: write
11−
127 jobs:
138 pr_labeler:
149 runs-on: utilities
@@ -20,9 +15,11 @@ jobs: · 5 unmodified lines
2015 if: ${{ forge.event_name == 'pull_request_target' }}
2116 with:
2217 configuration-path: .forgejo/labeler/labeler.yml
18+ repo-token: ${{ secrets.AUTOLABELER_TOKEN }}
2319 - name: Label by title-match
2420 uses: https://github.com/actions/github-script@v7
2521 with:
2622 script: |
2723 const script = require('.forgejo/labeler/labeler.js')
2824 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