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

need username for github.com #2072

Closed
tianshuo78520a opened this issue Feb 11, 2025 · 1 comment
Closed

need username for github.com #2072

tianshuo78520a opened this issue Feb 11, 2025 · 1 comment

Comments

@tianshuo78520a
Copy link

tianshuo78520a commented Feb 11, 2025

I am using actions/ checkout@v4 After downloading the directory, I wanted to package it and transfer it to another machine for use.

However, when performing a git pull operation on the other machine, I encountered a situation where I needed to enter my username and password. I am accessing open source repositories and don't know how to bypass usernames and passwords.

I am trying to use actions/ checkout@v4 When setting the token to empty, but when cloning directly, an error occurs and there is no access permission. Changing to your own token is the same, there is no permission

clone.yml
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}
submodules: 'recursive'
fetch-depth: 1000

- name: Merge PR to test branch
  run: |
    git fetch origin pull/${{ github.event.pull_request.number }}/head:pr
    git merge --no-ff pr
    git branch -d pr

test1.yml
cd ${WORKDIR}
git config --global user.name ""
git config --global user.email ""
git pull origin develop

@tianshuo78520a
Copy link
Author

use git config --unset http.https://github.com/.extraheader fix issues

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