Repository navigation
Pass workflow expressions to run steps through env - #2961
Merged
Merged
Conversation
Co-Authored-By: Amir Mujacic <amir.mujacic@sentry.io>
mujacica
marked this pull request as ready for review
November 25, 2026 09:20
bitsandfoxes
approved these changes
Nov 25, 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.
#skip-changelog
Several workflow steps put
${{ }}expressions directly intorun:scripts, a pattern that therun-shell-injectionandtemplate-injectionrules flag. This change moves each value intoenv:and reads it from the environment in the script.None of these values is attacker-controlled today.
unity-versioncomes from the static lists increate-unity-matrix.yml, or from a[0-9]+\.[0-9]+capture onchore/unity-*branch names. The reusable workflows still shouldn't rely on their callers to keep it that way. Theupdate-deps.ymlstep is the one case that takes data from outside the repo: the version and changeset returned by Unity's releases API.Some steps get an explicit
shell:so they behave the same on every runner:sdk.yml"Update submodules" now runs inbash, like the "Get submodule status" step above it, so$SUBMODULESis split into words on the Windows runners too.sdk.yml"Build" now runs inpwshand reads the target from$env:TARGET.update-deps.ymlonly runs on a schedule orworkflow_dispatch, and thesdk.yml"Build" step only runs on a native SDK cache miss. Watch those two after merge.via amir.
--
View Session [Sentry]