Error: SentryCLI failed to set commits
Steps to Reproduce
- Created internal integration in Sentry.
- Added the Sentry integration via the Netlify UI with the org slug, repo slug, and auth token.
- Push a commit to the main branch.
Expected Result
Build would be successfully deployed and reported.
Actual Result
The deploy fails with the error below.
Error: SentryCLI failed to set commits. You likely need to set up a repository or repository integration.
Read more: https://docs.sentry.io/workflow/releases/?platform=python#install-repo-integration
It turns out the mistake was mine. I missed a permission step in the docs and did not set the Read permission for Organization in the Sentry integration. I was able to figure it out by seeing that I get a 403 when running set-commits locally with the Sentry CLI.
However, I would argue that the plugin could provide a better error message here. It seems like it should be possible to specify the error is a Sentry API auth issue.
Hrm, I'm getting that error and have Read set on Organization
I'm getting that error and have Read set on Organization too