Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: auth token processing #48

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ An iOS app integrating Sentry to demo its various product features. See [Empower
- Install XCode
- In a terminal, run:
- `make init`
- `sentry-cli login` (see [`sentry-cli` docs](https://docs.sentry.io/product/cli/) for more info)
- `sentry-cli login` (see [`sentry-cli` docs](https://docs.sentry.io/product/cli/) for more info) and use an **org-level** auth token from the `demo` org

## Run
Open Xcode and click the "Play" button or press ⌘R
Expand Down
2 changes: 1 addition & 1 deletion upload-symbols.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if which sentry-cli >/dev/null; then
fi
if [ -z "$SENTRY_AUTH_TOKEN" ]; then
if [ -f ~/.sentryclirc ]; then
export SENTRY_AUTH_TOKEN=$(grep -oE "token=(.*)$" ~/.sentryclirc | cut -d'=' -f2)
export SENTRY_AUTH_TOKEN=$(grep -oE "token=(.*)$" ~/.sentryclirc | sed s/'token='//)
echo "Using SENTRY_AUTH_TOKEN from .sentryclirc."
fi
if [ -f ~/.zshrc ] && grep -q "export SENTRY_AUTH_TOKEN" ~/.zshrc; then
Expand Down