When using a valid CLI authentication token (generated from the Partner Dashboard, starts with atkn_, 69 characters) in GitHub Actions CI, the Shopify CLI (v3.80.7) fails with the error:
Authorization is required to continue, but the current environment does not support interactive prompts.
To resolve this, specify credentials in your environment, or run the command in an interactive environment such as your local terminal.
-
The token is set as an environment secret (SHOPIFY_CLI_AUTH_TOKEN) in the correct environment.
-
The workflow passes the token as an environment variable to the deploy step.
-
The same token works perfectly when used locally with export SHOPIFY_CLI_AUTH_TOKEN=… and running shopify app deploy or shopify app info.
-
The debug step in CI confirms the token is present, correct, and not truncated.
Steps to Reproduce:
-
Generate a CLI authentication token from the Shopify Partner Dashboard.
-
Set it as an environment secret in GitHub Actions.
-
Reference it in the workflow as SHOPIFY_CLI_AUTH_TOKEN.
-
Run shopify app deploy --config=shopify.app.staging.toml --force --no-color in a GitHub Actions job.
-
Observe the error above.
Expected Behavior:
Shopify CLI should authenticate and deploy non-interactively in CI/CD, as documented.
Actual Behavior:
Shopify CLI fails with an authorization error, as if no token is present.
Environment:
-
Shopify CLI version: 3.80.7
-
GitHub Actions runner: ubuntu-latest
-
Token: Valid, starts with atkn_, works locally
Additional Info:
-
No repo-level secret conflict.
-
Environment-level secret is set and picked up by the workflow.
-
Token is not expired or revoked.
-
Manual deploy with the same token works.