Skip to content

Firebase distribution: replace FIREBASE_TOKEN (login:ci) with a service account #3

Backlog

Description

@sergihernanz

Problem

distribute.yml and the README tell projects to create FIREBASE_TOKEN with firebase login:ci. The Firebase CLI is deprecating those long-lived tokens in favor of service accounts / Application Default Credentials, so the generated setup will eventually break or push users to an unsupported flow.

Found while reviewing #2 (v2). It is not introduced by that PR (the token flow already existed), so it is tracked here instead of blocking it. #2 itself says the Firebase token setup is the least certain part.

Proposal

  • Support a service account in the Firebase lane (firebase_app_distribution takes service_credentials_file), e.g. from a FIREBASE_SERVICE_ACCOUNT secret written to a temporary file, like iq_asc_api_key does for ASC_KEY_P8.
  • Update templates/github-actions/distribute.yml, the Jenkinsfile template and the README secrets table.
  • Keep FIREBASE_TOKEN as a deprecated fallback with a warning for one major version.

FMP (familymealplan-ios) already uses a service account (FIREBASE_SERVICE_ACCOUNT_FILE) in its PR-build lane, so there is a working reference.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions