This pull request adds a check to allow updating the runs-on and shell parameters of all workflows. Previously, the workflows "Update AL Go System Files" and "Pull Request Handler" were excluded when changing the two parameters to prevent deadlocks and security issues.
With this change, a check will only allow changing the parameters of the blacklisted workflows if the runs-on parameter is either windows-latest or ubuntu-latest. Additionally, a check in the function ModifyRunsOnAndShell ensures only the value pwsh is allowed when using an ubuntu-latest runner.
This pull request adds a check to allow updating the
runs-on
andshell
parameters of all workflows. Previously, the workflows "Update AL Go System Files" and "Pull Request Handler" were excluded when changing the two parameters to prevent deadlocks and security issues. With this change, a check will only allow changing the parameters of the blacklisted workflows if theruns-on
parameter is eitherwindows-latest
orubuntu-latest
. Additionally, a check in the functionModifyRunsOnAndShell
ensures only the valuepwsh
is allowed when using anubuntu-latest
runner.