Title: ci: Skip snapshot upload when SENTRY_AUTH_TOKEN is unavailable by markushi · Pull Request #6232 · getsentry/sentry-java · GitHub
Open Graph Title: ci: Skip snapshot upload when SENTRY_AUTH_TOKEN is unavailable by markushi · Pull Request #6232 · getsentry/sentry-java
X Title: ci: Skip snapshot upload when SENTRY_AUTH_TOKEN is unavailable by markushi · Pull Request #6232 · getsentry/sentry-java
Description: 📜 Description The Upload Snapshots to Sentry step in build.yml had a guard that only skipped PRs from forks: if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} A Dependabot PR is not from a fork — its head branch lives in this repository — so the condition was true and the step ran. But GitHub gives Dependabot workflow runs a separate secret store, so secrets.SENTRY_AUTH_TOKEN resolved to an empty string and sentry-cli failed with HTTP 401. This replaces the fork condition with a test on the token itself. An empty token covers both forks and Dependabot, and the step exits successfully with a log line instead of failing the build. 💡 Motivation and Context Every Dependabot PR failed the required Build Job ubuntu-latest - Java 17 check, which blocked the dependency updates from merging. Example failure — https://github.com/getsentry/sentry-java/actions/runs/37570909421/job/112661793919 (PR #6219): error: API request failed Caused by: sentry reported an error: Invalid token header. No credentials provided. (http status: 401) 💚 How did you test it? locally 📝 Checklist I added GH Issue ID & Linear ID I added tests to verify the changes. No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled. I updated the docs if needed. I updated the wizard if needed. Review from the native team if needed. No breaking change or entry added to the changelog. No breaking change for hybrid SDKs or communicated to hybrid SDKs. Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec. 🔮 Next steps After merge, re-run the Build job on an open Dependabot PR to confirm it goes green. #skip-changelog
Open Graph Description: 📜 Description The Upload Snapshots to Sentry step in build.yml had a guard that only skipped PRs from forks: if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.re...
X Description: 📜 Description The Upload Snapshots to Sentry step in build.yml had a guard that only skipped PRs from forks: if: ${{ github.event_name != 'pull_request' || github.event.pull_request...
Opengraph URL: https://github.com/getsentry/sentry-java/pull/6232
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4cf6b72e-8ccb-374f-cd6e-468862240ed0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B81A:613C2:1561E8:1DF95D:6B047000 |
| html-safe-nonce | 874958c3c56b03c3f2ae9802e9f7bc692597e5dafc9a1805d7f095ed2f7679f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODFBOjYxM0MyOjE1NjFFODoxREY5NUQ6NkIwNDcwMDAiLCJ2aXNpdG9yX2lkIjoiODA3ODY5MjA3ODA2ODE5OTQyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4a3c08d6d806d199f7be58e8c281acda60db961ea78cf10fd22960fbf5644e9e |
| hovercard-subject-tag | pull_request:4769731557 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/getsentry/sentry-java/pull/6232/files |
| twitter:image | https://avatars.githubusercontent.com/u/1411808?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1411808?s=400&v=4 |
| og:image:alt | 📜 Description The Upload Snapshots to Sentry step in build.yml had a guard that only skipped PRs from forks: if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.re... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width