Why was `::set-output` deprecated, and what replaced it?
IntermediateConceptContexts, Expressions, Env & Outputs
Answer
::set-output name=x::value and ::set-env were parsed from stdout, so any process that could print to the log (for example, a test printing attacker-controlled input) could inject outputs or environment variables, including LD_PRELOAD or NODE_OPTIONS. They were replaced by environment files: $GITHUB_OUTPUT, $GITHUB_ENV, $GITHUB_PATH, $GITHUB_STATE, which only the step's own process writes. Old syntax prints a deprecation warning or is disabled.
More on Contexts, Expressions, Env & Outputs
List the available contexts and what each holds.BeginnerWhich contexts can you use in which keys? Give two examples that trip people up.AdvancedWhat are the expression operators and how do comparisons coerce types?IntermediateHow do you write a ternary in GitHub Actions expressions?IntermediateWhat do `contains`, `startsWith`, `endsWith`, `format` and `join` do?BeginnerWhat are object filters (`.*`) and how are they useful?Intermediate