-
Notifications
You must be signed in to change notification settings - Fork 462
Pass workflow expressions through the environment #1241
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,5 +104,7 @@ jobs: | |
| - name: Build summary | ||
| run: | | ||
| echo "✅ OpenSpiel base image built and pushed successfully!" | ||
| echo "📦 Image: ${{ steps.meta-openspiel-base.outputs.tags }}" | ||
| echo "📦 Image: ${STEPS_META_OPENSPIEL_BASE_OUTPUTS_TAGS}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Behavior-preserving and correct — the tag is now referenced as a quoted shell variable backed by the |
||
| echo "🚀 Next regular build will use this new base image" | ||
| env: | ||
| STEPS_META_OPENSPIEL_BASE_OUTPUTS_TAGS: ${{ steps.meta-openspiel-base.outputs.tags }} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct application of GitHub's recommended script-injection mitigation: these
workflow_dispatchinputs are now referenced below as quoted shell variables ("${GITHUB_EVENT_INPUTS_…}") instead of being interpolated inline, and each name maps 1:1 to its use in therun:script (withset -u, a typo would fail loudly). Behavior is preserved.Minor / non-blocking: the
GITHUB_prefix is reserved by GitHub for built-in variables. These specific names aren't among the defaultGITHUB_*vars, so they work in an inlineenv:block — but the prefix is discouraged, and names like these are rejected outright if ever moved to repository/environment variables or secrets. This file already uses the un-prefixedENVS_CSV_INPUT(line 69) for the same purpose; matching that convention (e.g.HF_NAMESPACE_INPUT,OPENENV_VERSION_INPUT, …) would be more robust and consistent.