mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-11-19 21:16:06 +00:00
ci: move Lock Threads to dessant/lock-threads v6.0.2 (#23)
The pinned v4.0.0 rejects the job token: it validates github-token at 100 characters or fewer, and Actions tokens are now longer, so every scheduled run fails with '"github-token" length must be less than or equal to 100 characters long'. v6.0.2 accepts them. Permissions follow the workflow phishing already runs: empty top-level permissions, issues/pull-requests write on the job only, process-only issues and PRs (discussions write is no longer granted), and a 10 minute timeout. Each repository keeps its schedule.
This commit is contained in:
1 parent
2e1a0ff965
commit
dc5335f3ec
1 file changed
+7
-4
@@ -5,17 +5,20 @@ on:
|
||||
- cron: '0 0 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
lock:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v5
|
||||
- uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
process-only: 'issues, prs'
|
||||
issue-inactive-days: 30
|
||||
pr-inactive-days: 30
|
||||
issue-lock-reason: resolved
|
||||
|
||||
Reference in new issue
Block a user