Skip to content

Commit 0eaba5e

Browse files
runningcodeclaude
andcommitted
test: add dummy auth token to bypass auth check
This allows the CLI to proceed past authentication and reach the head-sha detection logic where we can see our debug logs. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f08edd6 commit 0eaba5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test-pr-head-sha.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ jobs:
7676
echo "--- CLI OUTPUT START ---"
7777
7878
# Test the CLI's head-sha detection with debug logging enabled
79-
./target/release/sentry-cli --log-level debug build upload test_artifacts/test.apk || true
79+
# Using a dummy auth token to get past auth check and reach the head-sha detection logic
80+
./target/release/sentry-cli --log-level debug --auth-token dummy_token_for_testing build upload test_artifacts/test.apk || true
8081
8182
echo "--- CLI OUTPUT END ---"
8283
@@ -96,7 +97,7 @@ jobs:
9697
unset GITHUB_EVENT_NAME
9798
9899
echo "Running CLI without GitHub Actions context (with debug logging)..."
99-
./target/release/sentry-cli --log-level debug build upload test_artifacts/test.apk || true
100+
./target/release/sentry-cli --log-level debug --auth-token dummy_token_for_testing build upload test_artifacts/test.apk || true
100101
101102
echo ""
102103
echo "Expected: Should fall back to 'git rev-parse HEAD'"

0 commit comments

Comments
 (0)