Harvey
June 3, 2025, 10:06am
1
I’m working on a task requiring matching Sentry releases with GitHub version. I used these commands on my dev.yaml workflow to generate releases on Sentry and attach commits to it.
npm install -g @sentry/cli
sentry-cli releases --project [myprojectname] new RBWE-1231-fix-sentry-dashboard
sentry-cli releases set-commits RBWE-1231-fix-sentry-dashboard
sentry-cli releases finalize RBWE-1231-fix-sentry-dashboard
I got this
error: Project not found. Ensure that you configured the correct project and organization.
I’m sure that my project’s name is correct as I checked it on Sentry’s dashboard. Also, I can created Sentry releases and tagged them with commits easily on my local.
But these command don’t work on Github runner.
Finley
June 3, 2025, 10:21am
2
Problem:
Your Sentry commands work locally but fail on GitHub Actions with:
error: Project not found. Ensure that you configured the correct project and organization.
Root Cause:
The GitHub runner is missing Sentry authentication and/or config .
You need to pass Sentry auth (org, project, auth token) in the workflow.
Fix:
Add the following to your GitHub Actions env
or before using sentry-cli
:
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: your-org-name
SENTRY_PROJECT: your-project-name
OR set them inline in your workflow step:
- name: Create Sentry release
run: |
sentry-cli releases new RBWE-1231-fix-sentry-dashboard
sentry-cli releases set-commits RBWE-1231-fix-sentry-dashboard
sentry-cli releases finalize RBWE-1231-fix-sentry-dashboard
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: your-org-name
SENTRY_PROJECT: your-project-name
Notes:
Make sure your SENTRY_AUTH_TOKEN
is set in GitHub Secrets .
You can generate a token from Sentry under Account → API → Auth Tokens .
Summary:
Item
What to do
Error
Missing config on GitHub runner
Fix
Set SENTRY_AUTH_TOKEN
, SENTRY_ORG
, SENTRY_PROJECT
Works locally?
Yes, because your env is already set
GitHub runner?
Needs manual setup via env
or secrets