push protection は定義済みパターン以外のシークレットも止められる。public preview。リポジトリで AI-detected secrets と push protection の両方が有効なときだけ、Block AI-detected secrets を足せる。既定はオフ。
有効化後はパターン検出と並べて、新しい push、GitHub UI 上のコミット、ファイルアップロードを見る。検知すると変更を拒否し、位置を示す。ブロックを解くには、その push のすべてのコミットからシークレットを除いて再送する。既存の bypass と delegated bypass はそのまま使える。エージェントが回避するには認可が要る。
初期の結果では push protection がシークレットを捉えた push の数が 2 倍を超え、利用者報告の精度は発行者が定義した検出器に並ぶ。
リポジトリ管理者は Settings > Advanced Security > Secret Protection > AI-detected secrets > Block AI-detected secrets から有効にする。組織とエンタープライズは security configuration で、次を Enabled(API では enabled)にする。
- AI-detected secrets は
secret_scanning_generic_secrets - Push protection は
secret_scanning_push_protection - Block AI-detected secrets は
secret_scanning_generic_secrets_push_protection
対象は github.com 上の、GitHub Secret Protection または GitHub Advanced Security を持つ組織。push 経路の AI 検知は AI credits を使い、プレビューへオプトインして機能を有効にした時点から課金される。push 後の AI-detected secret アラートはライセンスに含まれ、追加料金はない。