Skip to content

fix(ci): add missing required github-token input to lock-threads action#244

Open
tickwarden wants to merge 3 commits into
Nostalgica-Reverie:mainfrom
tickwarden:main
Open

fix(ci): add missing required github-token input to lock-threads action#244
tickwarden wants to merge 3 commits into
Nostalgica-Reverie:mainfrom
tickwarden:main

Conversation

@tickwarden

Copy link
Copy Markdown

Problem

The lock job in .github/workflows/stale.yml (workflow: Close issues) has been failing on every scheduled run (59 * * * *) since dessant/lock-threads@v5.0.1 was added:
Error: "github-token" length must be less than or equal to 100 characters long

Root Cause

github-token is the only non-optional input for dessant/lock-threads — it has no fallback default. The current step omits it:

lock:
    steps:
      - uses: dessant/lock-threads@v5.0.1
        with:
          issue-inactive-days: '365'
          issue-lock-reason: 'resolved'
          process-only: 'issues'

Because the job has been failing on every run, closed issues inactive for 365+ days have never actually been locked.

Fix

lock:
    steps:
      - uses: dessant/lock-threads@v6
        with:
          issue-inactive-days: '365'
          issue-lock-reason: 'resolved'
          process-only: 'issues'

Testing

Manually triggered the Close issues workflow via workflow_dispatch after applying the fix. The lock job completed without the previous "github-token" length must be less than or equal to 100 characters long error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant