How to know from the code, that build was started as "build with ssh"

Hi, can I know by some env. variable or somehow else from inside circle ci that my build was started as “build with ssh”?

I have one step which I need to do only for SSH, but I am doing it now every time.

You can try checking the ~/.ssh/authorized_keys file maybe? As far as I know we don’t inject your SSH key in unless you rerun with SSH but I would have to track down the code to be sure.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.