How to run shell script as non-root user using drone-ssh plugin

I am using drone-ssh plugin to ssh to remote server and try to run bash scripts. I am authenticating as non-root user but need to run some commands as root user using ‘sudo’. Any idea how can I grab the user & password that I passed in drone-ssh plugin?


I am still having an issue resolving this problem. can anyone suggest how to accomplish this task?