# Secure code from an agent's first commit to production

AI agents ship code faster than security teams can review it by hand. GitHub closes that gap with security built into every stage of the software development lifecycle, from local review to organization-wide detection and automated remediation, all without leaving GitHub.

## Links

### Review an agent's changes before you push

* [GitHub MCP サーバーを使用したシークレットのスキャン](/ja/enterprise-cloud@latest/code-security/how-tos/use-ghas-with-ai-coding-agents/scan-for-secrets-with-github-mcp-server)

  公開されたシークレットがリポジトリに到達する前に、AI コーディング エージェントからリアルタイムで検出します。

* [GitHub Copilot アプリでのセキュリティ アラートの表示と修正](/ja/enterprise-cloud@latest/copilot/how-tos/github-copilot-app/view-and-fix-security-alerts)

  GitHub
  code scanning 用セキュリティ拡張機能を使用して、コードと並行して GitHub Copilot app アラートに対処します。

### Stop leaked credentials before they reach your repository

* [プッシュプロテクション](/ja/enterprise-cloud@latest/code-security/concepts/secret-security/push-protection)

  プッシュ保護を使用して、シークレットがリポジトリに到達するのを防ぎ、シークレットをセキュリティで保護します。

* [AI で検出されたシークレットのプッシュ保護の有効化](/ja/enterprise-cloud@latest/code-security/how-tos/secure-your-secrets/prevent-future-leaks/enable-ai-push-protection)

  AI を使用して検出されたパスワードやその他の非構造化シークレットを含むプッシュをブロックします。

### Detect vulnerabilities at scale with hybrid detection

* [コード スキャン](/ja/enterprise-cloud@latest/code-security/concepts/code-scanning/code-scanning)

  code scanningを使用して、GitHubのプロジェクトのコードでセキュリティの脆弱性とエラーを見つけることができます。

* [リポジトリのバックログの AI スキャン](/ja/enterprise-cloud@latest/code-security/concepts/code-scanning/ai-scan-for-repositories)

  複数の言語にまたがって追加のセキュリティ脆弱性を見つけ、既存の code scanning バックログで結果を管理します。

* [プル リクエスト向け AI スキャン](/ja/enterprise-cloud@latest/code-security/concepts/code-scanning/ai-powered-security-detections)

  AI スキャンでは、AI ベースのスキャン エンジンを使用して、 CodeQLでカバーされていない言語とフレームワークのプル要求のセキュリティの脆弱性を見つけます。

* [組織のコード セキュリティ リスク評価の実行](/ja/enterprise-cloud@latest/code-security/how-tos/secure-at-scale/configure-organization-security/configure-specific-tools/assess-your-vulnerability-risk)

  code security risk assessment レポートを生成して、組織の脆弱性への露出を特定します。

### Define and enforce the rules for merging code

* [Enterprise のガバナンス フレームワークを確立する](/ja/enterprise-cloud@latest/admin/overview/establishing-a-governance-framework-for-your-enterprise)

  GitHub Enterpriseで利用できる機能とツールを使用して、企業のガバナンスとコンプライアンスを管理できます。

* [Organization 内リポジトリのカスタム プロパティの管理](/ja/enterprise-cloud@latest/organizations/managing-organization-settings/managing-custom-properties-for-repositories-in-your-organization)

  カスタム プロパティを使用すると、Organization 内のリポジトリにメタデータを追加できます。 これらのプロパティを使用して、ルールセットを含むリポジトリをターゲットにすることができます。

* [コード スキャンのマージ保護を設定します](/ja/enterprise-cloud@latest/code-security/how-tos/find-and-fix-code-vulnerabilities/manage-your-configuration/set-merge-protection)

  チェックに失敗したプル要求をブロックして、コードベースをセキュリティ対策しますcode scanning。

### Resolve alerts with draft pull requests

* [コード スキャンの自動修正について](/ja/enterprise-cloud@latest/code-security/concepts/code-scanning/autofix-for-code-scanning)

  自動修正では、code scanning アラートの修正候補が生成され、既存の脆弱性を修復するのに役立ちます。

* [コード スキャン アラートを解決する](/ja/enterprise-cloud@latest/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/resolve-alerts)

  セキュリティ ビューでは、プロジェクトのコード内の潜在的な脆弱性やエラーに関するアラートを表示、修正、または無視できます。

* [セキュリティ キャンペーンについて](/ja/enterprise-cloud@latest/code-security/concepts/security-at-scale/about-security-campaigns)

  セキュリティ キャンペーンを作成し、開発者と協力してセキュリティ バックログをバーンダウンすることで、セキュリティ アラートを大規模に修正できます。

### Go beyond security to code quality

* [GitHub のコード品質について](/ja/enterprise-cloud@latest/get-started/learning-about-github/about-github-code-quality)

  GitHub Code Qualityがチームのニーズを満たしているかどうか、他のGitHub製品を補完する方法、購入前に考慮すべき事項を判断します。

* [GitHub Code Quality の有効化](/ja/enterprise-cloud@latest/code-security/how-tos/maintain-quality-code/enable-code-quality)

  Code Qualityをオンにして、チームに一貫した品質ベースラインを提供します。pull request と既定のブランチでコード品質の問題を自動的にキャッチ、修正、レポートします。