본문 바로가기
🪲 bugs

Error: Permission to {repository} denied to github-actions[bot]

by iirin 2023. 12. 21.

발생 상황

`README.md` 를 자동으로 생성해주는 Action을 시행하다 이와 같은 Github action 에러를 맞이했습니다.

 

# update 관련 내용 생략

git add README.md && git commit -m "Updated README"
[main 88ac2d7] Updated README
 1 file changed, 25 insertions(+), 2 deletions(-)
git push
remote: Permission to new-pow/bookshelf.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/new-pow/bookshelf/': The requested URL returned error: 403

 

 

발생 원인

저장소 세팅에서 `Workflow`의 권한이 제한되어있었기 때문입니다.

이를 수정하여 문제를 해결할 수 있습니다.

 

대처

`Settings -> Action -> General -> Workflow permissions` 에서 `Read and write permissions` 를 선택합니다.

 

 

바로 성공 🥳


Refs.

 

Permission denied to github-actions[bot]. The requested URL returned error: 403

I want to push files into the current repository using Github Actions. I've written a basic configuration that uses the official actions/checkout@v3 action. My configuration is almost the same as i...

stackoverflow.com