[eas-cli] Lint the App Store review demo password length - #4242
Open
dennytosp wants to merge 1 commit into
Open
Conversation
|
Subscribed to pull request
Generated by CodeMention Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead. |
dennytosp
force-pushed
the
fix/metadata-lint-demo-password-length
branch
from
August 21, 2026 06:43
8d1ae0e to
41cd8d3
Compare
dennytosp
force-pushed
the
fix/metadata-lint-demo-password-length
branch
from
September 3, 2026 10:31
fb61236 to
e8a3d92
Compare
App Store Connect rejects a demo password over 100 characters, but the metadata schema had no limit, so `eas metadata:lint` passed and the error only surfaced part-way through `eas metadata:push`. Fixes expo#2785
dennytosp
force-pushed
the
fix/metadata-lint-demo-password-length
branch
from
September 5, 2026 20:06
e8a3d92 to
83dc3a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Fixes #2785.
apple.review.demoPasswordhas no length constraint in the metadata schema, soeas metadata:lintpasses on a password App Store Connect will reject. The failure only shows up part-way througheas metadata:push, after other entities have already been synced:How
Add
"maxLength": 100todemoPasswordinpackages/eas-cli/schema/metadata-0.json, matching the limit Apple's API enforces, so the lint reports it before the push starts.Note the App Store Connect web UI caps the field at 50 characters (see the screenshot in #2785), but the API accepts up to 100. Linting to the API limit avoids rejecting configs that push successfully today.
Test Plan
New
packages/eas-cli/src/metadata/config/__tests__/validate-test.tsasserts a 100-character password validates and a 101-character one is reported againstapple.review.demoPassword.yarn typecheck,yarn lint(0 warnings), andyarn fmt:checkare clean.