GPG 検証を有効にすると、GitHub は Codespaces であなたが作成したコミットに自動的に署名し、そのコミットは GitHub で検証済みのステータスとなります。 デフォルトでは、GPG 検証は作成されたコードスペースに対して無効になっています。 GPG 検証を、すべてのリポジトリに対して許可するか特定のリポジトリに対して許可するか選択できます。 GPG 検証は、信頼するリポジトリに対してのみ有効にしてください。 GitHub が署名したコミットに関する詳しい情報については、「コミット署名の検証について」を参照してください。
Once you enable GPG verification, it will immediately take effect for all your codespaces.
- 任意のページの右上で、プロフィール画像をクリックし、続いてSettings(設定)をクリックしてください。
![ユーザバーの [Settings(設定)] アイコン](/web/20211008092713im_/https://docs.github.com/assets/images/help/settings/userbar-account-settings.png)
- 左のサイドバーでCodespacesをクリックしてください。

- [GPG verification] で、GPG 検証の設定を選択します。

- [Selected repositories] を選択した場合、ドロップダウンメニューを選択してから、GPG 検証を有効にするリポジトリをクリックします。 GPG 検証を有効にするすべてのリポジトリについて、同じ手順を繰り返します。
![[Selected repositories]ドロップダウンメニュー](/web/20211008092713im_/https://docs.github.com/assets/images/help/settings/codespaces-gpg-verification-repository-drop-down.png)
Note: Once you have enabled GPG verification for Codespaces, you also must append -s to each commit in order for it to be signed. To do this in Visual Studio Code, ensure the "Git: Enable Commit Signing" option is enabled from the Settings.