Conversation
The `secrets` context is not available in a step-level `if:`. Referencing it in the "Write ASC API key (option B)" step made the entire workflow file unparseable, so GitHub could not evaluate the `on:` triggers and recorded a 0-second startup_failure for EVERY push on EVERY branch — 10+ red runs since 2026-07-28, none of which ever ran a build. Hoist the option-B secrets to job-level `env` (which IS available in `if:`) and reference them as shell env vars in the step body. Also collapse the GITHUB_ENV appends into one redirect (shellcheck SC2129). Verified with actionlint 1.7.12: file now lints clean (was 1 error). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Problem
Every push to every branch since 2026-07-28 produced a red, 0-second failed run of
TestFlight (EAS cloud build + submit). None of them ever ran a build — they were startup failures.Root cause is one line:
The
secretscontext is not available in a step-levelif:. That makes the whole workflow file unparseable, so GitHub cannot even evaluate theon:block — which is why a workflow gated onpush: tags: ['v*']was firing on ordinary branch pushes.Fix
Hoist the optional option-B secrets into job-level
env, which is available in a stepif:, and reference them as ordinary shell variables in the step body. Also collapses the threeGITHUB_ENVappends into one redirect (shellcheck SC2129).Verification
actionlint1.7.12 — 1 error before, clean after:Not addressed here
The workflow still cannot produce a build until setup is finished — the repo has no Actions secrets configured at all, so
EXPO_TOKENis missing, andapps/mobile/eas.jsonsetscredentialsSource: "local"for the production profile (signing assets that only exist on the M3 machine). Tracked separately.🤖 Generated with Claude Code