Skip to content

Evolve credentials command to accept profile input and to output keystore json#3511

Open
henriquevcosta wants to merge 3 commits intoexpo:mainfrom
henriquevcosta:add-profile-name-to-credentials
Open

Evolve credentials command to accept profile input and to output keystore json#3511
henriquevcosta wants to merge 3 commits intoexpo:mainfrom
henriquevcosta:add-profile-name-to-credentials

Conversation

@henriquevcosta
Copy link

Why

Trying to automate the environment setup of an android app in a firebase project via terraform required
the SHA1 of EAS credentials, and there was no automated way of obtaining those.

How

I looked at the current implementation of features, including the fingerprint:generate command, and tried to reuse that with a bit of help from Cursor.

Test Plan

I tested it manually on my react native project and tried to implement a unit test. Let me know if more is enough
image

@henriquevcosta henriquevcosta force-pushed the add-profile-name-to-credentials branch from 174f444 to 916dac0 Compare March 17, 2026 05:44
@henriquevcosta
Copy link
Author

/changelog-entry new-feature To support automations where Firebase projects need to be automatically configured, it is now possible to non-interactively obtain the hashes for EAS-managed credentials.

@henriquevcosta henriquevcosta marked this pull request as ready for review March 17, 2026 06:03
@github-actions
Copy link

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

@henriquevcosta henriquevcosta changed the title Add profile name to credentials Evolve credentials command to accept profile input and to output keystore json Mar 17, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 916dac0d8b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +57 to +59
flags.json &&
flags['non-interactive'] &&
flags.platform === 'android'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Honor --json implication of non-interactive mode

The credentials command now uses EasNonInteractiveAndJsonFlags, whose shared flag contract says --json implies --non-interactive, but this branch requires both flags to be explicitly true. In a normal TTY session, eas credentials --platform android --json will skip this JSON path and drop into the interactive manager flow instead of emitting JSON-only output, which breaks script automation unless users add an extra undocumented requirement (--non-interactive).

Useful? React with 👍 / 👎.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm that's a good point! In this case should I just make the tool non-interactive as soon as the --json flag is passed? I don't know what other expectations are there around interactivity that it could break.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codex can you suggest a good way forward?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant