Connect to the job with ssh (use Rerun job with SSH) and then simply run env
and copy&paste the vars.
Note: make sure you have a ssh key in your Github settings. If it's missing, CircleCI will silently fail to show the "Enable SSH" setting in the re-run.