Skip to content

Internal Repository Not Reachable From Actions #26207

Discussion options

You must be logged in to vote

Hi @elihuntington ,

I can reproduce the same with below code:

steps:
      - name: checkout
        uses: actions/checkout@v2
  - name: gitremote
    run: |
      git ls-remote --tags --heads https://github.com/weide-zhou/ticket1.git

Did you use ‘actions/checkout@v2’ at prior step as well? ‘actions/checkout@v2’ will persist the GITHUB_TOKEN credential to the repo config to make git operations. Please use ‘actions/checkout@v1’ instead. Or if you use v2, please add ‘persist-credentials: false’ in the action args. Please check the link for more details.

If the issue still persists, please share a repo sample or total yaml to help further investigation.

Thanks.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
4 participants