Warn for soon to be deprecated OS versions (#3413)

This commit is contained in:
eric sciple
2024-08-02 14:37:46 -05:00
committed by GitHub
parent 12506842c0
commit ae04147f96
13 changed files with 457 additions and 22 deletions

View File

@@ -127,6 +127,10 @@ namespace GitHub.Runner.Worker
}
}
// Check OS warning
var osWarningChecker = HostContext.GetService<IOSWarningChecker>();
await osWarningChecker.CheckOSAsync(context, message.OSWarnings);
try
{
var tokenPermissions = jobContext.Global.Variables.Get("system.github.token.permissions") ?? "";