Post

workflow Error 해결 방법

git push를 하려고 하니 다음과 같은 문제가 발생하였다…

1
2
3
4
5
% git push
...
To https://github.com/nollae/nollae.github.io.git
 ! [remote rejected] master -> master (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/cd.yml` without `workflow` scope)
error: 레퍼런스를 'https://github.com/nollae/nollae.github.io.git'에 푸시하는데 실패했습니다

문제 발생 부분

refusing to allow a Personal Access Token to create or update workflow .github/workflows/cd.yml without workflow scope

GitHub actions workflows와 관련된 파일을 수정하여 without workflow scope 오류가 발생하였다.

workflow scope 문제 원인

Personal access token을 이용할 때, 사용 중인 Access Token의 workflow를 수정할 수 있는 권한이 없을 경우 발생한다.

해결방법

  1. 프로필에서 Settings
  2. Developer Settings
  3. Personal Access Token
  4. 접속 범위를 변경할 Access token 선택
  5. workflow 부분 체크

Error02

This post is licensed under CC BY 4.0 by the author.