Skip to content
Latchkey

GitHub Actions "Input required and not supplied: token"

An action requires a token input and received nothing, often because the secret it referenced is empty. This is a configuration issue, not transient.

What this error means

The step fails immediately with "Error: Input required and not supplied: token".

github-actions
Error: Input required and not supplied: token

Common causes

Secret reference is empty

The referenced secret is unset, misspelled, or unavailable (for example on a fork PR).

with: token omitted

The action needs an explicit token input that was not provided.

How to fix it

Pass a valid token input

  1. Provide token: ${{ secrets.GITHUB_TOKEN }} or a PAT secret.
  2. Confirm the secret exists and the run is not a fork PR.
.github/workflows/ci.yml
- uses: some/action@v1
  with:
    token: ${{ secrets.GITHUB_TOKEN }}

How to prevent it

  • Verify secret names in repository settings.
  • Handle the fork-PR case where secrets are unavailable.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →