Problem line is:
Note: this works as expected when called with workflow_dispatch but fails when triggered by pull_request_target trigger.
Example run checking out incorrect branch: https://github.com/instructlab/training/actions/runs/14886706608/job/41808924082#step:6:177