# 如何建立 ArgoCD 使用的 GitHub App 在 GitHub 上建立一個新的 GitHub App,並設定以下欄位 - **GitHub App Name**: 任意,例如 `argocd-for-xxx` - **Homepage URL**: `https://argo-cd.readthedocs.io/en/stable/` - **Webhook**: 取消 `Active`,因為 ArgoCD 不需要使用 Webhook - **Permissions**: 設定以下權限 - **Repository permissions**: `Contents`: `Read-only` - **Where can this GitHub App be installed?**: `Any account` ![截圖 2024-05-08 15.32.58](https://hackmd.io/_uploads/B182cjdGR.png) ![截圖 2024-05-08 15.33.19](https://hackmd.io/_uploads/HJ2pcidM0.png) ![截圖 2024-05-08 15.33.49](https://hackmd.io/_uploads/SyuyjoOMC.png) ![截圖 2024-05-08 15.34.04](https://hackmd.io/_uploads/SkuxjidfC.png) App ID 在 General ![截圖 2024-05-08 15.34.46](https://hackmd.io/_uploads/ByMXsiOfA.png) 拉到下面可以產生 private key,點選後會下載下來 ![截圖 2024-05-08 15.35.29](https://hackmd.io/_uploads/BJ6SioufC.png) 在 Install App 那邊安裝到組織底下 ![截圖 2024-05-08 15.36.22](https://hackmd.io/_uploads/By2JnoOM0.png) 選擇需要授權的 repo ![截圖 2024-05-08 15.38.35](https://hackmd.io/_uploads/Syvb3iufR.png) 安裝好之後會導到一個網址,installations 後面的數字就是 installation ID ![截圖 2024-05-08 15.39.21](https://hackmd.io/_uploads/rkBV3j_GC.png)