mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-11-19 21:16:06 +00:00
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.
27 lines
585 B
YAML
27 lines
585 B
YAML
name: Lock Threads
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
lock:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- 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
|
|
pr-lock-reason: resolved
|
|
log-output: true
|