# Github

## **전제 조건**

[GitHub](https://github.com/) 계정을 만듭니다.

## **지원되는 인증 방법**

- API 액세스 토큰:

모든 GitHub 노드에서 이 방법을 사용합니다.

- OAuth2:

이 방법은 [GitHub](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.github/) 및 [GitHub 트리거](https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.githubtrigger/) 노드에서만 사용할 수 있으며, [GitHub 문서 로더](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.documentgithubloader)에서는 사용하지 않습니다.

## **관련 리소스**

서비스에 대한 자세한 내용은[ GitHub의 API 문서](https://docs.github.com/en/rest)를 참조하세요.

## **API 액세스 토큰 사용**

이 자격 증명을 구성하려면 [GitHub](https://github.com/) 계정이 필요합니다.

이 자격 증명을 설정하는 데는 두 단계가 있습니다:

1. [GitHub 개인 액세스 토큰을 생성](https://docs.n8n.io/integrations/builtin/credentials/github/?utm_source=n8n_app&utm_medium=credential_settings&utm_campaign=create_new_credentials_modal#generate-personal-access-token)합니다.

2. [자격](https://docs.n8n.io/integrations/builtin/credentials/github/?utm_source=n8n_app&utm_medium=credential_settings&utm_campaign=create_new_credentials_modal#set-up-the-credential) 증명을 [설정](https://docs.n8n.io/integrations/builtin/credentials/github/?utm_source=n8n_app&utm_medium=credential_settings&utm_campaign=create_new_credentials_modal#set-up-the-credential)합니다.

자세한 지침은 아래 섹션을 참조하세요.

### **개인 액세스 토큰 생성**

**권장 액세스 토큰 유형**

n8n은 개인 액세스 토큰(classic)을 사용할 것을 권장합니다. GitHub의 세분화된 개인 액세스 토큰은 아직 베타 버전이며 모든 엔드포인트에 액세스할 수 없습니다.

개인 액세스 토큰을 생성하려면:

1. 아직 확인하지 않았다면 GitHub에서 이메일 주소를 확인하세요.

자세한 내용은 [이메일 주소 확인](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/verifying-your-email-address)을 참조하세요.

2. GitHub 프로필 [설정](https://github.com/settings/profile)을 엽니다.

3. 왼쪽 탐색에서 **[개발자 설정](https://github.com/settings/apps)**을 선택합니다.

4. 왼쪽 탐색의 **개인 액세스 토큰**에서 **토큰(클래식**)을 선택합니다**.**

5. **새 토큰 생성 **> 새** 토큰 생성(클래식**)을 선택합니다**.**

6. **메모** 필드에 토큰에 대한 설명 이름을 입력합니다. `n8n integration`

7. 토큰에 대해 원하는 **만료**를 선택하거나 **만료 없음**을 선택합니다.

8. 토큰의 **범위**를 선택합니다. n8n GitHub 노드에 대해 `repo`

범위만 선택하면 됨

- 범위가 할당되지 않은 토큰은 공개 정보에만 액세스할 수 있습니다.

- 참조

9. **토큰 생성**을 선택합니다.

10. 토큰을 복사합니다.

자세한 내용은 [개인 액세스 토큰(클래식) 만들기](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)를 참조하세요. GitHub 범위에 대한 자세한 내용은 [OAuth 앱용 범위](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes)를 참조하세요.

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094927_QobnznhYzaFv504ONF?q=80&s=1280x180&t=outside&f=webp)

### **자격 증명 설정**

그런 다음 n8n 자격 증명으로:

1. GitHub 엔터프라이즈 서버를 사용하지 않는 경우 **GitHub 서버** URL을 변경하지 마세요.

- [GitHub 엔터프라이즈 서버](https://docs.github.com/en/enterprise-server@3.9/admin/overview/about-github-enterprise-server)를 사용하는 경우 서버의 URL과 일치하도록 **GitHub 서버**를 업데이트합니다.

2. GitHub 프로필에 표시된 대로 **사용자** 이름을 입력합니다.

3. 위에서 생성한 **액세스 토큰**을 입력합니다.

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094927_ayGuao6cW4fo4zTPDT?q=80&s=1280x180&t=outside&f=webp)

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094928_AozTHyuhtKdMOjxv4H?q=80&s=1280x180&t=outside&f=webp)

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094928_OfWkf80MUETA3zA1vN?q=80&s=1280x180&t=outside&f=webp)

![Image](https://upload.cafenono.com/image/slashpageHome/20250422/094929_o6YG5sosIXcFlH5kKP?q=80&s=1280x180&t=outside&f=webp)

For the site tree, see the [root Markdown](https://slashpage.com/n8n-guide.md).
