개발

github personal access token 발급하기

소밍소밍 2022. 5. 23. 23:36

github 로그인을 한 뒤 아래 링크로 진입한다.

버튼으로 눌러서 들어간다면 프로필 > Settings > Developer settings > Personal access tokens 로 들어가면 된다.

 

https://github.com/settings/tokens 

 

GitHub: Where the world builds software

GitHub is where over 83 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 feat...

github.com

 

 

 

상단의 Generate new token을 누르고 들어가서 필요한 권한에 체크를 한다.

어차피 내가 쓸 토큰이라면 위험한 delete_repo 권한만 제외하고 나머지 권한을 모두 체크하면 된다 

누군가에게 토큰을 줘야 한다면 필요한 권한만 부여하면 된다. 

repo 권한을 제외한 나머지 권한은 추후 수정이 가능하기 때문에 조금 편안한 마음으로 체크해도 된다.

 

단! 토큰을 생성하고 나면 나오는 문자열은 다시 볼 수 없기 때문에 잘 저장해 둬야 한다. 

이 토큰을 앞으로 password를 요구하는 외부 프로그램 등에서 github 패스워드 대신 사용하면 된다.