Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sanity deploy does not return a non-zero exit code for "Unauthorized - Session not found" #8554

Open
luke-symes opened this issue Feb 9, 2025 · 0 comments

Comments

@luke-symes
Copy link

Describe the bug

sanity deploy does not return a non-zero exit code for the CLI error "Unauthorized - Session not found".

This causes a GitHub Action that automates deployments to fail silently.

To Reproduce

Create a GitHub Action with the following step:

      - run: npm run deploy
        env:
          SANITY_AUTH_TOKEN: "invalid token"

Expected behavior

It's expected that the workflow will signal a failure in GitHub checks.

Screenshots

Screenshot of GitHub workflow failing silently

Which versions of Sanity are you using?

@sanity/cli (global)  3.74.1 (up to date)
@sanity/cli           3.74.1 (up to date)
@sanity/vision        3.74.1 (up to date)
sanity                3.74.1 (up to date)

What operating system are you using?

macOS 15.3 (24D60)

Which versions of Node.js / npm are you running?

  npm: 10.9.2
  node: 22.13.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant