Checkout: Retrieving the default branch name failed

Created on 15 Sep 2020  路  2Comments  路  Source: actions/checkout

An action fails during the checkout action with the following error:

Determining the default branch
Retrieving the default branch name
Not Found
Waiting 12 seconds before trying again
Retrieving the default branch name
Not Found
Waiting 13 seconds before trying again
Retrieving the default branch name
##[error]Not Found

The checkout action in a workflow is configured as follows:

      steps:
      # checkout podspec repository
      - uses: actions/checkout@v2
        with:
          repository: Bluedot-Innovation/PointSDK-iOS.git
          token: ${{ secrets.REPO_ACCESS_TOKEN }}

However, the same repository with the same configuration has passed an action 21 Apr 2020.

Most helpful comment

I had the same error message, and my issue was that the token holder didn't have read access to the repository I was attempting to access. I was able to fix by granting that user read access. You're trying to access a public repository, so it's not the same issue.

It looks like you just need to remove the .git from the end of your repository name. It should read repository: Bluedot-Innovation/PointSDK-iOS.

All 2 comments

I had the same error message, and my issue was that the token holder didn't have read access to the repository I was attempting to access. I was able to fix by granting that user read access. You're trying to access a public repository, so it's not the same issue.

It looks like you just need to remove the .git from the end of your repository name. It should read repository: Bluedot-Innovation/PointSDK-iOS.

Yes, that works! Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pdcmoreira picture pdcmoreira  路  3Comments

hannesa2 picture hannesa2  路  5Comments

chorrell picture chorrell  路  4Comments

rectalogic picture rectalogic  路  5Comments

tsal picture tsal  路  6Comments