-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EAS-CLI 7.2.0] EAS build couldn't evaluate SECRET variables for auto submit #2232
Comments
The same error for |
By doing "submit": {
"production": {
"ios": {
"appleId": "${secrets.APPLE_ID}",
"ascAppId": "${secrets.ASC_APP_ID}",
"appleTeamId": "${secrets.APPLE_TEAM_ID}"
}
}
} Do you want to access the env variables defined in your environment named If so I think that "submit": {
"production": {
"ios": {
"appleId": "$APPLE_ID",
"ascAppId": "$ASC_APP_ID",
"appleTeamId": "$APPLE_TEAM_ID"
}
}
} should work. If you want to access the secrets defined on EAS servers this way when trying to create a submission locally, I don't think it is possible and I don't think it ever was possible 🤔. If it worked for you in the past it was probably because we had too loose validation of these fields and they were evaluated to empty strings which probably fell back to default auth logic at the time. |
@szdziedzic , thank you for your response. I assure you ${secrets.XXX} to access Expo SECRETS environment variables was working previously. It couldn't have any fallback because I added One possible explanation is the Anyway, I tried your suggestion of using "$APPLE_ID", it has the same error. I even tried "$EXPO_PUBLIC_APPLE_ID". It seems that EAS-CLI doesn't have the capability to read any local environment variable in the |
I had a light-bulb moment, after reconsidering what you suggested. I removed the whole ios object from submit.production, and eas submit falls back to the environment variables. It works! You are right to suggest the code worked previously because the validation was loose. It fell back to the default environment variables when the key value pairs were invalid without complaining. It was reading from the environment variables. |
Build/Submit details page URL
No response
Summary
Ran
eas build --profile production --platform ios --auto-submit
, and everything went well until eas evaluates variables needed for auto submit. Eas build failed to evaluate Apple ID for auto submit. I'm using SECRETS to store the required submit variables. It was working in SDK49.The error message is from eas-cli. The error does not appear in Expo builds page. And eas proceeded with the build despite the error.
Managed or bare?
Managed
Environment
Error output
Reproducible demo or steps to reproduce from a blank project
eas build --profile production --platform ios --auto-submit
The text was updated successfully, but these errors were encountered: