Skip to content

Checkout repo with token on self hosted runner #1604

@nelyodev

Description

@nelyodev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions