diff --git a/src/Runner.Worker/ActionRunner.cs b/src/Runner.Worker/ActionRunner.cs index 952b6267e..8a12b9561 100644 --- a/src/Runner.Worker/ActionRunner.cs +++ b/src/Runner.Worker/ActionRunner.cs @@ -135,9 +135,6 @@ namespace GitHub.Runner.Worker ExecutionContext.SetGitHubContext("event_path", workflowFile); } - var gitHubActionPath = ExecutionContext.GetGitHubContext("action_path"); - Trace.Info($"githubactionpath: {gitHubActionPath}"); - // Setup container stephost for running inside the container. if (ExecutionContext.Global.Container != null) { diff --git a/src/Runner.Worker/ExecutionContext.cs b/src/Runner.Worker/ExecutionContext.cs index b7740f3c9..1aad95c9c 100644 --- a/src/Runner.Worker/ExecutionContext.cs +++ b/src/Runner.Worker/ExecutionContext.cs @@ -274,7 +274,6 @@ namespace GitHub.Runner.Worker { envContext[pair.Key] = new StringContextData(pair.Value ?? string.Empty); } - step.ExecutionContext.ExpressionValues["env"] = envContext; return step; @@ -421,7 +420,6 @@ namespace GitHub.Runner.Worker ArgUtil.NotNullOrEmpty(name, nameof(name)); var githubContext = ExpressionValues["github"] as GitHubContext; githubContext[name] = new StringContextData(value); - Trace.Info($"GitHub Context: {StringUtil.ConvertToJson(githubContext)}"); } public string GetGitHubContext(string name) diff --git a/src/Runner.Worker/Handlers/CompositeActionHandler.cs b/src/Runner.Worker/Handlers/CompositeActionHandler.cs index 354820f55..f9716b24a 100644 --- a/src/Runner.Worker/Handlers/CompositeActionHandler.cs +++ b/src/Runner.Worker/Handlers/CompositeActionHandler.cs @@ -57,7 +57,6 @@ namespace GitHub.Runner.Worker.Handlers } // Set GITHUB_ACTION_PATH - Trace.Info($"ActionDirectory: {ActionDirectory}"); ExecutionContext.SetGitHubContext("action_path", ActionDirectory); foreach (Pipelines.ActionStep actionStep in actionSteps) @@ -68,9 +67,6 @@ namespace GitHub.Runner.Worker.Handlers actionRunner.Condition = actionStep.Condition; var step = ExecutionContext.CreateCompositeStep(childScopeName, actionRunner, inputsData, Environment); - - // step.ExecutionContext.ExpressionValues["github"] = ExecutionContext.ExpressionValues["github"] as GitHubContext; - compositeSteps.Add(step); } diff --git a/src/Runner.Worker/Handlers/ScriptHandler.cs b/src/Runner.Worker/Handlers/ScriptHandler.cs index c30bffca5..397d9a176 100644 --- a/src/Runner.Worker/Handlers/ScriptHandler.cs +++ b/src/Runner.Worker/Handlers/ScriptHandler.cs @@ -265,11 +265,6 @@ namespace GitHub.Runner.Worker.Handlers { foreach (var env in runtimeContext.GetRuntimeEnvironmentVariables()) { - if (runtimeContext is GitHubContext) - { - Trace.Info($"gh context key: {env.Key}"); - Trace.Info($"gh context Value: {env.Value}"); - } Environment[env.Key] = env.Value; } }