Lightning-AI / Lightning-AI/torchmetrics

Slash-command workflows are non-functional (Slash Command Dispatch fails on every run)

Open
#3,393 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug / fix help wanted
Dominant language
Python
Stars
2.5k
Forks
526
Avg merge
6d 11h
Merged PRs (30d)
5

Description

🐛 Bug

The repository's slash-command system appears to be non-functional. slash-cmd-dispatch.yml runs on every issue_comment but fails immediately with Error: Missing required input 'token', which suggests the PAT_GHOST secret it passes is empty or unavailable to the action. As a result, the downstream handlers cmd-help.yml and cmd-rebase.yml (triggered by the dispatch) never run, /help and /rebase appear to do nothing.

I can only observe this from the outside (run logs + run history), so the secret diagnosis is a best guess, maintainers can confirm the actual PAT_GHOST state.

To Reproduce
Evidence
  • Recent "Slash Command Dispatch" runs: 6 of the last 6 failed.
  • Example failing run: https://github.com/Lightning-AI/torchmetrics/actions/runs/26149625570 fails with Error: Missing required input 'token' (the token input is fed from PAT_GHOST, which seems to resolve to empty).
  • cmd-help.yml and cmd-rebase.yml have no run history at all, consistent with the dispatch never reaching them.
Additional context

Possible ways forward (maintainers' call, since this is internal tooling / a repo secret):

  • Restore or refresh the PAT_GHOST secret, if it's expired or unset, or
  • If the slash-command feature is no longer wanted, remove slash-cmd-dispatch.yml, cmd-help.yml, and cmd-rebase.yml. Happy to send a PR for the removal route if that's preferred.

Found while auditing/pinning action SHAs across the workflows in #3392

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review .github/workflows/slash-cmd-dispatch.yml first, then inspect cmd-help.yml and cmd-rebase.yml and the failed run logs for the missing token input. Confirm with maintainers whether PAT_GHOST should be restored or the slash-command workflows should be removed; done means the chosen path is applied and slash-command runs no longer fail immediately.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.