Fix external repo CI: runner context invalid in job-level env block#4989
Draft
Fix external repo CI: runner context invalid in job-level env block#4989
Conversation
Agent-Logs-Url: https://github.com/nasa/fprime/sessions/a7fd63e7-ee45-40ce-a5c3-9524cb9614e6 Co-authored-by: thomas-bc <49786685+thomas-bc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix external repo CI not running correctly
Fix external repo CI: runner context invalid in job-level env block
Apr 10, 2026
LeStarch
approved these changes
Apr 10, 2026
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.
Change Description
All four external repo CI workflows (
ext-build-math-comp,ext-build-led-blinker,ext-build-hello-world,ext-build-examples-repo) have been failing withtotal_jobs: 0since PR #4764 merged on Feb 26, 2026.Root cause: PR #4764 placed
VERBOSE_FLAG: ${{ runner.debug == '1' && '--verbose' || '' }}in the job-levelenv:block. Therunnercontext is not available atjobs.<job_id>.env— only at step-level contexts. GitHub Actions fails workflow schema validation before any jobs start.Fix: Remove
VERBOSE_FLAGfrom both job-levelenv:blocks inreusable-project-builder.ymland export it via$GITHUB_ENVin a step (whererunnercontext is valid):FPRIME_LOCATIONandTARGET_PLATFORMremain in job-levelenv:— they useinputs.*context which is valid there.Rationale
GitHub Actions context availability rules prohibit
runner.*in job-levelenv:blocks. Moving to a step export fixes validation without reverting any of the security improvements from #4764.Testing/Review Recommendations
Verify that the external repo CI workflows start producing jobs again (previously all runs showed
total_jobs: 0). No functional behavior changes —VERBOSE_FLAGis still empty unless debug logging is enabled.Future Work
None.
AI Usage (see policy)
Copilot coding agent used for root cause analysis (tracing failure onset to specific commit via GitHub Actions run history) and implementing the fix.