FirebaseExtended / FirebaseExtended/action-hosting-deploy

Authenticate with workload federation credential file instead of service account key

Open
#174 21 comments 28 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
809
Forks
232
PR merge metrics
No merged PRs in 30d

Description

### The use case you're trying to solve

I would like to use a federated credential file from the auth action to configure the firebase deploy

### Change to the action that would solve that use case

```yaml
- id: auth
name: Authenticate to Google Cloud
uses: google-github-actions/auth@v0.3.1
with:
create_credentials_file: true
workload_identity_provider: ...
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}

- name: 🚀 Firebase Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
credentials_file_path: ${{ steps.auth.output.credentials_file_path }}
projectId: '${{ secrets.PROJECT_ID }}'
channelId: live
env:
FIREBASE_CLI_PREVIEWS: hostingchannels
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.