Description
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