a small refactor since the upstream core lib change is now long merged and adopted
require
WOODPECKER_PLUGINS_PRIVILEGED