checkout icon indicating copy to clipboard operation
checkout copied to clipboard

Can not checkout code via ssh-key in windows when self-hosted runner config by unattended

Open BondLi1 opened this issue 3 years ago • 0 comments

When I use ./config.cmd --name $runner_name --unattended --replace --runasservice --url https://github.com/$owner/$project/ --labels $Labels --token $RegistrationToken to setup a self-hosted runner, then let a job run in the runner, then checkout action will fail, image

  - name: Code checkout
    uses: actions/checkout@v2
    with:
      ssh-key: ${{ secrets.ssh_private_key }}

I know use unattended in config, then runner will run as network service account, when run as network service account,, checkout action will fail, if run as other account, then will be OK

BondLi1 avatar Jun 10 '22 10:06 BondLi1