Git plugin 4.1.0 adds many GitSCM getters to the Pipeline whitelist as part of
JENKINS-42860 so that Pipeline users do not need to specifically approve a script that refers to GitSCM fields. It is confirmed to work when the references are directly inside the Jenkinsfile, as in the JENKINS-42860 automated check.
It fails to whitelist the reference to that field when it is accessed from a shared library method like GitUtils.my_utils
The failing reference looks something like this: