While the default log cleaning removes the credentials from the log of the python command line, the gradle process.exec() log in the line after the cleaned log shows the credentials without any hiding.
[python] python3 -m pip list --format=columns --user --extra-index-url https://insi-eb:*****@...
Starting process 'command 'python3''. Working directory: /workspaces/platform Command: python3 -m pip list --format=columns --user --extra-index-url https://insi-eb:<myToken>@...
I guess the only way to really hide credentials also there would be to set a filtering OutputStream on the GradleEnvironment::exec() call.