--- title: "GitHubでパーソナルアクセストークンを生成する" url: https://docs.catalyst.zoho.com/ja/tutorials/githubbot/java/generate-personal-access-token/ description: "Catalyst Integration Functionsを使用してZoho Cliq上にエクステンションを構築し、Cliqボットを通じてGitHubリポジトリにアクセスして操作できるようにします" last_updated: 2026-08-17T12:16:04Z service: All Services type: tutorial related_links: - name: "GitHub Integration" url: /ja/devops/help/github-integration/introduction --- # GitHubでパーソナルアクセストークンを生成する 次に、Gitアカウントのリポジトリ用にパーソナルアクセストークンを生成します。GitHubのパーソナルアクセストークンはOAuthアクセストークンと同様に機能し、GitHub APIへのアクセスを認証します。 GitHubでパーソナルアクセストークンを生成するには、以下の手順に従います。 1. **Gitアカウントの設定**に移動し、**Developer Settings**を開きます。**Personal access tokens**メニューをクリックし、**Tokens (classic)** → **Generate new token**をクリックします。 ![catalyst_gitbot_access_token_1](https://catalyst-docs-development.zohostratus.in/images/tutorials/githubbot/github-bot-generate-personal-access-token.webp) 2. スコープとして**repo**を選択します。トークンは、リポジトリ内のすべての指定されたアクションに適用されます。 ![catalyst_gitbot_access_token_2](https://catalyst-docs-development.zohostratus.in/images/tutorials/githubbot/catalyst_gitbot_access_token_2.webp) 3. **Generate Token**をクリックします。 GitHubはパーソナルアクセストークンを一度だけ表示します。トークンをコピーして安全な場所に保管してください。 ![catalyst_gitbot_access_token_3](https://catalyst-docs-development.zohostratus.in/images/tutorials/githubbot/catalyst_gitbot_access_token_3.webp) このトークンをIntegration Functionのコードで使用します。これにより、CatalystがGitHubからリポジトリに関する必要な情報を取得できるようになります。