# GitHub 대상

## 개요

Destination은 룰, 정책, 시스템 상태 알러트, 그리고 룰 오류를 수신하는 통합입니다. Panther는 알러트를 수신할 대상 Destination으로 Github를 구성하는 것을 지원합니다.

GitHub Destination에는 `저장소 이름` 및 API `토큰이 필요합니다.`.

알러트가 GitHub Destination으로 전달되면 저장소에 이슈가 생성됩니다. 저장소에는 이슈가 활성화되어 있어야 합니다.

이 통합은 AWS CloudFormation 또는 Terraform과 같이 인프라를 코드로 정의할 때 가장 유용합니다.

## Panther에서 Github 알러트 destination을 설정하는 방법

### 사전 요구 사항

Github에 전용 Panther Alerts 서비스 계정을 생성하는 것을 권장합니다.

### GitHub에서 API 토큰 생성하기

GitHub의 문서를 따르세요: [개인 액세스 토큰 생성](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).

1. 서비스 계정(또는 저장소에 접근 권한이 있는 다른 개발자 서비스 계정)을 사용하여 GitHub 계정에 로그인하세요.
2. 다음으로 이동하세요: **설정 > 개발자 설정**:\
   ![The image shows the Github "Developer Settings" page. In the upper right corner, a dropdown menu is expanded and the "Settings" option is highlighted.](/files/6043dd5ab4a4d38b7f187c5c34a1ce7d998a956a)
3. 개발자 설정 페이지에서 클릭하세요 **개인 액세스 토큰** 왼쪽에서. 클릭하세요 **새 토큰 생성**.\
   ![On the Developer Settings page in Github, the Personal Access Tokens tab is selected. There is a token named "Panther Alerts."](/files/a120f7a457006c72a8fd9393d4939d6dd7de16a2)
4. 토큰을 구성하려면 양식을 작성하세요.  `리포지토리` 권한 확인란을 선택하세요.
   * 참고: GitHub는 이슈 생성을 위한 세분화된 권한을 지원하지 않습니다. 이 수준의 액세스가 우려된다면 다음을 고려하세요. [전용 이슈 추적 리포지토리 만들기](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-an-issues-only-repository).
5. 다음을 클릭합니다. **토큰 생성**. 토큰을 복사하여 안전한 위치에 저장하세요. 다음 단계에서 필요합니다.
   * 참고: GitHub에서는 토큰을 다시 볼 수 없습니다. 이 토큰에 대한 액세스 권한을 잃으면 새 토큰을 생성해야 합니다.\
     ![In the Github page for Personal Access Tokens, the token appears in a green tile. A black rectangle covers the actual token value in this screen shot.](/files/d54532930ba2178e7c43ec8096b23ec770845d47)

### Panther에서 GitHub 대상 구성

1. Panther 콘솔에 로그인하세요.
2. 왼쪽 사이드바에서 클릭합니다 **구성 > 알러트 Destinations**.
3. 다음을 클릭합니다. **+첫 번째 Destination 추가**.
   * 이미 Destinations를 만든 경우, 클릭합니다 **Create New** 페이지 오른쪽 상단에서 새 Destination을 추가합니다.
4. 다음을 클릭합니다. **깃허브**.
5. Destination을 구성하려면 양식을 작성하세요:
   * **표시 이름**: 설명이 포함된 이름을 입력하세요.
   * **리포지토리 이름**: Github 리포지토리 이름을 입력하세요. 형식은 다음과 같습니다 `owner/repo_name`.
   * **토큰이 필요합니다.**: 이 문서의 이전 단계에서 Github에서 생성한 토큰을 입력하세요.
   * **심각도**: 이 Destination으로 전송할 알러트의 심각도 수준을 선택하세요.
   * **알러트 유형**: 이 Destination으로 전송할 알러트 유형을 선택하세요.
   * **로그 유형**: 기본적으로 모든 로그 유형에서 알러트를 전송합니다. 특정 로그 유형에서만 알러트를 전송하려면 여기에서 로그 유형을 지정하세요.
   * **수동 전송 허용**: 다음을 할 수 있도록 하려면 이 토글을 ON으로 설정하세요 [알러트를 수동으로 전송](https://docs.panther.com/alerts#manual-alert-dispatch) 이 destination으로.\
     ![In the Panther Console, the "Configure your Github Destination" page is displayed. It contains fields for Display Name, Repository Name, Token, Severity, Alert Types, and Log Types.](/files/8547804526aae79ffce44d2b37fad217aa9e5874)
6. 다음을 클릭합니다. **대상 추가**.
7. 마지막 페이지에서 선택적으로 클릭합니다 **테스트 알러트 보내기** 통합을 테스트하려면. 완료되면 클릭합니다 **설정 완료**.

## 대상에 대한 추가 정보

알러트 라우팅 순서, 대상 수정 또는 삭제, 워크플로 자동화에 대한 자세한 내용은 Panther 문서를 참조하세요: [대상](https://docs.panther.com/destinations).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.panther.com/ko/alerts/destinations/github.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
