mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-30 09:29:55 +00:00
ci: move Lock Threads to dessant/lock-threads v6.0.2 (#114)
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. The workflow now matches the one 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
cc6e5ae50f
commit
624b762b45
1 file changed
+9
-7
@@ -5,20 +5,22 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '15 2/3 * * *'
|
- cron: '15 2/3 * * *'
|
||||||
|
|
||||||
|
permissions: {}
|
||||||
# dessant/lock-threads locks closed issues, PRs and discussions.
|
|
||||||
permissions:
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
discussions: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lock:
|
lock:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
env:
|
||||||
|
YARN_ENABLE_SCRIPTS: false
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836
|
- uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
|
||||||
with:
|
with:
|
||||||
github-token: ${{ github.token }}
|
github-token: ${{ github.token }}
|
||||||
|
process-only: 'issues, prs'
|
||||||
issue-inactive-days: '7'
|
issue-inactive-days: '7'
|
||||||
issue-comment: >
|
issue-comment: >
|
||||||
This thread has been automatically locked since there has not been
|
This thread has been automatically locked since there has not been
|
||||||
|
|||||||
Reference in new issue
Block a user