You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--project does not work when using organization token #3046
Run the command: npx -y -- @sentry/cli releases list --show-projects --project=<PROJECT SLUG>
Collect the result
Expected Results
Results should be the same because the project is scoped in the arguments
Actual Results
The org token with org:ci only permissions, is showing ALL projects.
Since we use this in CI to tag commits in a sentry release it breaks our workflows due to this unexpected result (different projects use different versioning schemes).
Actually, i'm seeing the same issue when curling the API directly with a project_id - it just ignores that parameter.
Hi @dkarter, thank you for reporting this issue. Will try to investigate this problem this week.
This issue appears related to getsentry/sentry#105038. Like that issue, I believe this issue is probably a bug in our backend, not the CLI, but the issue only arose in version 3.0.0 of the CLI since we switched the endpoints we call for releases with this new release.
As a workaround, you can downgrade Sentry CLI version 2.58.4. This CLI version calls a different endpoint which should have the expected behavior.
On further review, this appears to be a CLI bug. It is an unintended side-effect of #2991, which switched the APIs for release-related functionality over to newer organization-based endpoints.
The problem is that the organization-based endpoint does not support filtering by project when listing releases. As a temporary solution, we will partially revert #2991, specifically the code related to releases list. Probably a better long term solution would be to allow project filtering via the organization releases endpoint, then we could also allow filtering releases that are associated with one of several projects (currently, we can only filter to a single project via the project releases endpoint)
Activity
linear commentedon Dec 17, 2025
CLI-253
szokeasaurusrex commentedon Dec 17, 2025
Hi @dkarter, thank you for reporting this issue. Will try to investigate this problem this week.
This issue appears related to getsentry/sentry#105038. Like that issue, I believe this issue is probably a bug in our backend, not the CLI, but the issue only arose in version 3.0.0 of the CLI since we switched the endpoints we call for releases with this new release.
As a workaround, you can downgrade Sentry CLI version 2.58.4. This CLI version calls a different endpoint which should have the expected behavior.
szokeasaurusrex commentedon Dec 17, 2025
On further review, this appears to be a CLI bug. It is an unintended side-effect of #2991, which switched the APIs for release-related functionality over to newer organization-based endpoints.
The problem is that the organization-based endpoint does not support filtering by project when listing releases. As a temporary solution, we will partially revert #2991, specifically the code related to
releases list. Probably a better long term solution would be to allow project filtering via the organization releases endpoint, then we could also allow filtering releases that are associated with one of several projects (currently, we can only filter to a single project via the project releases endpoint)fix(releases): Allow filtering to single release when listing
fix(releases): Allow filtering to single release when listing
fix(releases): Allow filtering to single release when listing
fix(releases): Allow filtering by a project when listing (#3048)