Changing GIT CREDENTIALS on running drone machine

Hi everyone!
Disclaimer: I’m a total noob regarding drone.io.

Where I work the devOps guy vanished. So it’s my job now to take care of the implementation.
First thing I want to do is to change the bitbucket credentials the drone works on.

Is there a way to change them without relaunching the docker ? I was thinking to enter the machine and change them inside, as they are env variables, will this be a persistent solution ?

Thanks in advance.

You can use the drone-cli and run drone repo chown org/repo for each of the repos in drone (assuming by change the BB credentials you mean what credentials do a git clone).