mirror of
https://github.com/actions/runner.git
synced 2026-01-07 19:03:09 +08:00
Compare commits
2 Commits
v2.322.0
...
users/tihu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcc6c28743 | ||
|
|
ee310e18b8 |
@@ -96,6 +96,18 @@ namespace GitHub.Runner.Worker.Handlers
|
|||||||
var isLocalOptOut = StringUtil.ConvertToBoolean(Environment.GetEnvironmentVariable(Constants.Variables.Actions.AllowActionsUseUnsecureNodeVersion));
|
var isLocalOptOut = StringUtil.ConvertToBoolean(Environment.GetEnvironmentVariable(Constants.Variables.Actions.AllowActionsUseUnsecureNodeVersion));
|
||||||
bool isOptOut = isWorkflowOptOutSet ? StringUtil.ConvertToBoolean(workflowOptOut) : isLocalOptOut;
|
bool isOptOut = isWorkflowOptOutSet ? StringUtil.ConvertToBoolean(workflowOptOut) : isLocalOptOut;
|
||||||
|
|
||||||
|
if (isOptOut && (executionContext.Global.Variables.GetBoolean("DistributedTask.NotAllowOptOutForNode20") ?? false))
|
||||||
|
{
|
||||||
|
executionContext.Global.JobTelemetry.Add(new JobTelemetry()
|
||||||
|
{
|
||||||
|
Type = JobTelemetryType.General,
|
||||||
|
Message = $"Not allowing opt out for node20 in step {executionContext.Id}"
|
||||||
|
});
|
||||||
|
Trace.Info("Not allowing opt out for node20");
|
||||||
|
executionContext.Warning("End of life for Actions Node16. For more info: https://github.blog/changelog/2024-09-25-end-of-life-for-actions-node16/");
|
||||||
|
isOptOut = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isOptOut)
|
if (!isOptOut)
|
||||||
{
|
{
|
||||||
var repoAction = action as Pipelines.RepositoryPathReference;
|
var repoAction = action as Pipelines.RepositoryPathReference;
|
||||||
|
|||||||
Reference in New Issue
Block a user