본문 바로가기
Study/error 삽질

[GitHub] (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/build.yml` without `workflow` scope) 해결 방법

by 코딩여걸 2023. 3. 8.
728x90

📝 git push를 하고 있는데 에러가 발생했다.

 

< Error Message >

 ! [remote rejected]   feature/STC-134 -> feature/STC-134 (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/build.yml` without `workflow` scope)
error: failed to push some refs to 'https://github.com/haiicorp/strokcare-app-unity.git'

 

< 문제 (Error) 발생 원인 >

발급받은 Access token(푸시할때 사용하는 개인 액세스 토큰(PAT, Personal Access Token))의 scope에 workflow가 접근하지 못했다는(설정되어 있지 않은 경우) 오류이다.

따라서 토큰의 scope를 변경하면 해결 가능하다.

 

< 해결 방법 >

해당 링크로 들어간 뒤에 사용중인 토큰을 선택한다.

github.com/settings/tokens

 

GitHub: Let’s build from here

GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...

github.com

해당 링크로 바로 들어가도 되고, 직접 들어가는 방법도 있다.

👇 직접 들어가는 방법 자세히 보기

더보기

1. GitHub 사이트(https://github.com/) 에서 자신의 프로필을 눌러 Settings 클릭

 

2. Settings 맨 아래에 Developer settings 클릭 (Settings > Developer settings)

 

3. Personal access tokens 클릭

 

4. Tokens (classic) 클릭

 

5. 이렇게 하면 (github.com/settings/tokens) 이 링크와 같은 곳이 나온다.

(vue 이런 곳은 개인마다 화면이 조금씩 다를 것 같다.)

 

해당 액세스 토큰 설정으로 들어가서 workflow에 체크를 해준 뒤, 업데이트해 주면 된다.

👇 자세히 보기

더보기

1. 여기에 뜨는 것을 눌러서 들어간다. (나는 vue라고 뜨네)

 

2. workflow 체크

 

3. Update token 클릭

 

- 끝 -

 

< 해결 >

그리고 다시 git push를 해주면~~

다시 성공적으로 push 됐다.

 

👇 성공

더보기

위에 설정만 바꿔주면 간단하게 해결된다!

 

728x90

댓글