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

Retrieving the default branch name, Not Found #845

Open
Goooler opened this issue Jul 6, 2022 · 4 comments
Open

Retrieving the default branch name, Not Found #845

Goooler opened this issue Jul 6, 2022 · 4 comments

Comments

@Goooler
Copy link

Goooler commented Jul 6, 2022

Checkout another private repo but failed, my config here:

jobs:
  checkout-private-repo:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/checkout@v3
        with:
          repository: 'Goooler/LearningNote'
          path: './LearningNote'
      - uses: actions/setup-java@v3
        with:
          distribution: 'zulu'
          java-version: 17

log here:

Run actions/checkout@v3
Syncing repository: Goooler/LearningNote
Getting Git version info
Temporarily overriding HOME='/home/runner/work/_temp/1099e687-7685-4c00-817f-a176165b93cc' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
/usr/bin/git config --global --add safe.directory /home/runner/work/DemoApp/DemoApp/LearningNote
Initializing the repository
Disabling automatic garbage collection
Setting up auth
Determining the default branch
  Retrieving the default branch name
  Not Found
  Waiting 11 seconds before trying again
  Retrieving the default branch name
  Not Found
  Waiting 11 seconds before trying again
  Retrieving the default branch name
  Error: Not Found

Link #347, and you can repro this issue in Goooler/DemoApp#153

@s-h-a-d-o-w
Copy link

It's described here - you need to provide a PAT:
https://github.com/actions/checkout#checkout-multiple-repos-private

@Goooler
Copy link
Author

Goooler commented Aug 22, 2022

If we can support this ability by default?

@Siddharth-Ashri
Copy link

I get that we need to use a PAT for checking out a private repo. Our Org has 4 different members all of who have their own forked repo, so if we wanted to run a checkout action for a PR from all 4 will we need to create 4 different PATs? how do we specify the tokens in the action?

@sanzenwin
Copy link

I'm facing this issue too when fetching a private repo. It only works on v2

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

4 participants