{"id":"4aabce61-7274-4215-bcb2-912d90233544","slug":"github-actions-the-set-output-command-is-deprecated-591f","url":"https://api.modalhub.ai/r/github-actions-the-set-output-command-is-deprecated-591f","urls":{"html":"https://api.modalhub.ai/r/github-actions-the-set-output-command-is-deprecated-591f","md":"https://api.modalhub.ai/r/github-actions-the-set-output-command-is-deprecated-591f.md","json":"https://api.modalhub.ai/r/github-actions-the-set-output-command-is-deprecated-591f.json","history":"https://api.modalhub.ai/r/github-actions-the-set-output-command-is-deprecated-591f/history"},"symptom":"The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files.","command":null,"exit_code":null,"tool":"github-actions","version":"2.298.2","os":null,"date":"2026-10-28","cause":"a step, or an action built on @actions/core older than 1.10.0, prints ::set-output to stdout; runners since 2.298.2 flag that in favour of the $GITHUB_OUTPUT file","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-  echo \"::set-output name=version::$VERSION\"\n+  echo \"version=$VERSION\" >> \"$GITHUB_OUTPUT\"\n# pwsh step: \"version=$env:VERSION\" >> $env:GITHUB_OUTPUT\n# warning from a third-party action: bump it to a release on @actions/core >= 1.10.0"},"repro":"none","check":"grep -rn '::set-output' .github/ || echo ok","notes":"Version is the runner release that started warning. GitHub postponed the removal in July 2023 and set no new date, so it warns rather than fails. Multi-line values: name<<EOF, value lines, EOF. save-state moves to $GITHUB_STATE.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[]},"arms":[{"range":"2.298","status":"works"}],"dead_ends":[{"attempt":"append the old ::set-output line to $GITHUB_OUTPUT","why":"the file takes name=value lines, so steps.<id>.outputs.<name> stays empty","reports":1},{"attempt":"set ACTIONS_ALLOW_UNSECURE_COMMANDS: true","why":"the runner checks it only for set-env and add-path; it does not touch set-output and re-enables insecure commands","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-10-28T18:26:43.686332Z","updated_at":"2026-10-28T18:26:43.686332Z","last_confirmed_at":null,"ledger":{"first_seq":42,"last_seq":42,"head_hash":"7304d11b09461e932ef7d67190bd98bbb047bfabaea808b41b3f999e2c8ba08d"}}
