Skip to content

sentry-cli releases 2.36.2 breaks with existing auth token #78025

@pchorus

Description

@pchorus

CLI Version

2.36.2

Operating System and Architecture

  • macOS (arm64)
  • macOS (x86_64)
  • Linux (i686)
  • Linux (x86_64)
  • Linux (armv7)
  • Linux (aarch64)
  • Windows (i686)
  • Windows (x86_64)

Operating System Version

Ubuntu 22.04

Link to reproduction repository

No response

CLI Command

sentry-cli releases --org foo --project bar deploys '1234abcdef' new -e dev

Exact Reproduction Steps

Since version 2.36.2 the above command failed with error message

error: API request failed
  caused by: sentry reported an error: request failure (http status: 400)
  Object {"projects": Array [String("Insufficient access to project")]}

Our auth token has the following scopes according to the current documentation: org:read, project:releases.
Above command was working successfully with version 2.36.1.

It seems there are additional scopes required since 2.36.2, please see getsentry/sentry-cli#2160.

Expected Results

Command should work in v2.36.2 as it did in v2.36.1 with auth scopes org:read and project:releases.

Actual Results

See above

Logs

See above

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions