Please add this Patch from freedesktop-Bugzilla for GUI-Apps that run with pkexec. https://bugs.freedesktop.org/show_bug.cgi?id=96713
Given upstream feedback, I'm not inclined to accept this patch.
My personal reason for this report was the KDE Partition Manager. But this software will use kauth from the next version. And if others do something similar, it does not need a patch.
See: https://cgit.kde.org/partitionmanager.git/commit/?id=e2b31f81fb07641375af7b8be56346166a8ac0ee