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: tokenCommon 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
- Provide token: ${{ secrets.GITHUB_TOKEN }} or a PAT secret.
- 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
GitHub Actions secret not available to fork pull_requestFix the GitHub Actions issue where secrets are empty for workflows triggered by pull_request from a fork, by…
GitHub Actions "Required input is not set" / missing withFix the GitHub Actions "Required input is not set" error caused by calling an action without supplying a with…
GitHub Actions "could not read Username" (token not passed to git)Fix the GitHub Actions "could not read Username for https://github.com" error caused by a git operation runni…