Skip to content

Commit 64a61c3

Browse files
Merge pull request #71 from appdevforall/fix/pin-firebase-tools-standalone
chore(ci): pin firebase-tools standalone binary to fix Firebase deploy WIF auth
2 parents 9612ef4 + 5594e25 commit 64a61c3

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎.github/workflows/firebase-distribution.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,18 @@ jobs:
147147
service_account: ${{ secrets.IDENTITY_EMAIL }}
148148

149149
- name: Setup Firebase CLI
150-
run: npm install -g firebase-tools
150+
# Use the STANDALONE binary, not `npm install -g`. A fresh npm install floats
151+
# firebase-tools' transitive deps and (since ~2026-06-25) pulls a broken auth
152+
# sub-dependency that can't consume Workload Identity Federation (external_account)
153+
# credentials -> "Failed to authenticate". The standalone binary bundles its deps
154+
# frozen at release time (pre-regression), so WIF auth works deterministically.
155+
# 14.11.2 = the version proven on the self-hosted runner. Bump deliberately.
156+
run: |
157+
sudo curl -fsSL \
158+
https://github.com/firebase/firebase-tools/releases/download/v14.11.2/firebase-tools-linux \
159+
-o /usr/local/bin/firebase
160+
sudo chmod +x /usr/local/bin/firebase
161+
firebase --version
151162
152163
# TODO: Run CI performance script before distributing
153164
# - name: Write CI Performance Data

0 commit comments

Comments
 (0)