From 9433bf68ab455a5f249d1951bb3fb70de7012e83 Mon Sep 17 00:00:00 2001 From: Salman Muin Kayser Chishti Date: Wed, 11 Feb 2026 13:47:09 +0000 Subject: [PATCH] Sort deprecated actions list for deterministic annotation output --- src/Runner.Worker/JobExtension.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Runner.Worker/JobExtension.cs b/src/Runner.Worker/JobExtension.cs index 5e2389227..bd4644766 100644 --- a/src/Runner.Worker/JobExtension.cs +++ b/src/Runner.Worker/JobExtension.cs @@ -739,7 +739,8 @@ namespace GitHub.Runner.Worker // Add deprecation warning annotation for Node.js 20 actions if (context.Global.DeprecatedNode20Actions?.Count > 0) { - var actionsList = string.Join(", ", context.Global.DeprecatedNode20Actions); + var sortedActions = context.Global.DeprecatedNode20Actions.OrderBy(a => a, StringComparer.OrdinalIgnoreCase); + var actionsList = string.Join(", ", sortedActions); var deprecationMessage = $"Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: {actionsList}. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2025. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: {Constants.Runner.NodeMigration.Node20DeprecationUrl}"; context.Warning(deprecationMessage); }