Skip to main content

リポジトリのプッシュ保護の有効化

リポジトリと組織のプッシュ保護を使用すると、secret scanning は共同作成者がシークレットをリポジトリにプッシュするのをブロックし、共同作成者がブロックをバイパスするたびにアラートを生成します。

この機能を使用できるユーザーについて

リポジトリの所有者、組織の所有者、セキュリティ マネージャー、および 管理者 ロールを持つユーザー

  1. On GitHub, navigate to the main page of the repository.

  2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. In the "Security" section of the sidebar, click Advanced Security.

  4. If you have not already enabled Secret Protection, to the right of "Secret Protection", click Enable.

  5. In the "Secret Protection" section, to the right of "Push protection", click Enable.

Further reading