Skip to main content

Error

Kosli CLI commands fail in GitHub Actions because KOSLI_API_TOKEN is not set, even though the secret exists in your repository.

Solution

Add the secret to your workflow’s environment variables explicitly:
env:
  KOSLI_API_TOKEN: ${{ secrets.kosli_api_token }}

Context

Secrets in GitHub Actions are not automatically exported as environment variables. You must map them explicitly in each workflow or job.
Last modified on March 26, 2026