Open Source를 기여하고자 push를 하는 순간 다음과 같은 에러가 발생하였다. 과정은 다음과 같다.
해당 repository는 mdn에서 translated-content
repository를 fork 한 것이다. 그리고 나의 원격 저장소에 fork된 repository를 로컬로 clone 하였다. 그리고 1개월이 지나고 원본 repository로 부터 fork한 나의 로컬 repository에 최신화된 commit 목록을 fetch하고 merge 하였다. 그리고 이를 나의 원격 repository에 push 하려는데 위와 같은 에러가 발생하였다.
에러메시지 fatal: Authentication failed for ‘https://github.com/hxxtae/translated-content.git/’ 를 검색해 보니 github에서 2021년 8월 이후로 git pull or git push 를 하려 할 때에 아래와 위와 같은 에러가 발생할 때가 있다고 한다. 이는 8월부터는 Id/Password
방법이 아닌 token
을 이용하여 로그인을 하기 때문에 발생한다.
# 아래는 GitHub 사용자 이름을 입력한다.
Username for '<https://github.com>':
# 아래는 Password가 아닌 GitHub Personal access tokens 을 입력한다.
Password for '<https://[email protected]>':
GitHub action workflow
와 관련된 파일을 수정할 때 다음과 같이 without workflow scope 오류가 발생할수 있다.
위 에러는 Token authentication을 위해 Personal access token
을 이용할 때 사용중인 Access Token에 workflow를 수정할 수 있는 권한이 없을 경우 발생한다. 해당 토큰에 workflow 수정 권한을 부여하는 방법은 다음과 같다.
Settings → Developer Settings → Personal Access Token → 접속 범위를 변경할 Access token 클릭 → workflow 부분 체크 (아래 그림 참조)
ref: https://wotres.tistory.com/entry/Github-에러-해결법-Authentication-failed-for-use-a-personal-access-token-instead#google_vignette