Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout repo with token on self hosted runner #1604

Open
nelyodev opened this issue Feb 7, 2024 · 0 comments
Open

Checkout repo with token on self hosted runner #1604

nelyodev opened this issue Feb 7, 2024 · 0 comments

Comments

@nelyodev
Copy link

nelyodev commented Feb 7, 2024

Hi,

as simple as is it

" ERROR: Repository not found.
Error: The process bin/git failed with exit code 128"
...Please ensure that the correct permissions exist...

name: 'some job'

on:
  push:
    branches:
      - main

jobs:
  some-job:
    runs-on: ['self-hosted']
    steps:
      - name: 'Checkout Service'
        uses: actions/checkout@v4
        with:
          repository: "some-name/test"
          path: test
          token: "<here is my token>"
          ref: main

The branch "main" exists. The token is inserted correctly. The personal token was created with my github account in the developer settings. I verified the token with the git cli. The token itself is valid. It may have to do with my self-hosted runner? Is there anything else I need to consider?

Stackoverflow link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant