Skip to content

Commit 04eeb03

Browse files
authored
fix: Adds a debug workflow to detect which service account is in use. (#366)
1 parent ff7a4ef commit 04eeb03

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Debug Firebase Secret
2+
on: workflow_dispatch # This allows you to run it manually from the Actions tab
3+
4+
jobs:
5+
print_secret_email:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Print Service Account Email
9+
run: |
10+
# Decode the base64 content (if encoded, which it often is by the action)
11+
# and try to extract the client_email from the JSON.
12+
# We'll only print the first few lines to avoid exposing the full key in logs.
13+
echo "Attempting to extract service account email from FIREBASE_SERVICE_ACCOUNT_KEY..."
14+
echo "${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}" | head -n 50 | grep -o '"client_email": "[^"]*"' | head -n 1
15+
env:
16+
FIREBASE_SERVICE_ACCOUNT_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_KEY }}

0 commit comments

Comments
 (0)