Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ Push protection has some limitations. For more information, see [AUTOTITLE](/cod

## How push protection works

Push protection works:
Push protection blocks secrets detected in:

* From the command line. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-from-the-command-line).
* In the {% data variables.product.prodname_dotcom %} UI. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-in-the-github-ui).{% ifversion push-protection-delegated-bypass-file-upload-support %}
* On files uploaded onto the repository on {% data variables.product.prodname_dotcom %}.{% endif %}{% ifversion secret-scanning-push-protection-content-endpoints %}
* From the REST API. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-from-the-rest-api).{% endif %}
* Pushes from the command line. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-from-the-command-line).
* Commits made in the {% data variables.product.prodname_dotcom %} UI. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-in-the-github-ui).{% ifversion push-protection-delegated-bypass-file-upload-support %}
* File uploads to a repository on {% data variables.product.prodname_dotcom %}.{% endif %}{% ifversion secret-scanning-push-protection-content-endpoints %}
* Requests to the REST API. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-from-the-rest-api).{% endif %}
* Interactions with the {% data variables.product.github %} MCP server (public repositories only). See [AUTOTITLE](/enterprise-cloud@latest/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-and-the-github-mcp-server).

Once enabled, if push protection detects a potential secret during a push attempt, it will block the push and provide a detailed message explaining the reason for the block. You will need to review the code in question, remove any sensitive information, and reattempt the push.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ children:
- /working-with-push-protection-from-the-command-line
- /working-with-push-protection-from-the-rest-api
- /working-with-push-protection-in-the-github-ui
- /working-with-push-protection-and-the-github-mcp-server
redirect_from:
- /code-security/secret-scanning/working-with-push-protection
- /code-security/secret-scanning/pushing-a-branch-blocked-by-push-protection
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: Working with push protection and the GitHub MCP server
shortTitle: Push protection and the GitHub MCP server
intro: 'Learn how you are protected from leaking secrets during interactions with the {% data variables.product.github %} MCP server, and how to bypass a push protection block if you need to.'
product: 'Public repositories on {% data variables.product.prodname_dotcom_the_website %}'
permissions: '{% data reusables.permissions.push-protection-resolve-block %}'
versions:
feature: copilot
type: how_to
topics:
- Secret scanning
- Secret Protection
- Alerts
- Repositories
- Copilot
---

## About push protection and the {% data variables.product.github %} MCP server

Push protection prevents you from inadvertently exposing secrets, such as tokens, keys and credentials, in your repository.

When you're interacting with the {% data variables.product.github %} MCP server, push protection blocks secrets in AI-generated responses as well as preventing secrets from being included in any actions you perform, such as creating an issue.

This protection is on by default for all interactions between the {% data variables.product.github %} MCP server and **public repositories** only, regardless of whether push protection is enabled on the repository's security settings page.

## Resolving a block

To resolve the block, you can either:

* **Remove** the secret from the content of your request before trying again.
* **Bypass the block.** If push protection is enabled for the repository, or you have push protection enabled for your personal account, you'll see an option to bypass the push protection block. You should carefully evaluate if it's safe to include the secret in your request before continuing.

## Further reading

* [AUTOTITLE](/code-security/secret-scanning/introduction/about-push-protection)
* [About the {% data variables.product.github %} MCP server](/copilot/concepts/about-mcp#about-the-github-mcp-server)
2 changes: 2 additions & 0 deletions content/copilot/concepts/about-mcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ The {% data variables.product.github %} MCP server is a Model Context Protocol (
* Connect third-party tools (like Cursor, Windsurf, or future integrations) to leverage {% data variables.product.github %}’s context and AI capabilities.
* Enable cloud-based workflows that work from any device, without local setup.

For public repositories, interactions with the {% data variables.product.github %} MCP server are secured by push protection, which blocks secrets from being included in AI-generated responses and prevents you from exposing secrets through any actions you perform using the server, such as creating an issue. See [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/working-with-push-protection-and-the-github-mcp-server).

You can access the {% data variables.product.github %} MCP server remotely through {% data variables.product.prodname_vscode %}, or other editors that support remote MCP; or you can run it locally in any MCP-compatible editor, allowing you to choose between the convenience of a hosted solution or the customizability of a self-hosted setup.

If you want to utilize the remote {% data variables.product.github %} MCP server, you can do so in a few steps, without any local setup. This is particularly useful for users who want to quickly leverage {% data variables.product.github %}’s AI capabilities without the overhead of managing a local MCP server.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About billing for individual Copilot plans
title: About billing for individual GitHub Copilot plans
shortTitle: Billing for individuals
intro: 'Learn how billing works for {% data variables.copilot.copilot_pro_short %} and {% data variables.copilot.copilot_pro_plus_short %}.'
versions:
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/billing/individual-plans.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About individual Copilot plans and benefits
title: About individual GitHub Copilot plans and benefits
shortTitle: Individual plans
intro: '{% data variables.product.company_short %} offers several {% data variables.product.prodname_copilot_short %} plans for individual developers, each with different features, model access, and usage limits to support a wide range of coding needs.'
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ If a single user receives a seat from multiple organizations in the same enterpr

## Billing cycles

Billed users are calculated at the end of each billing cycle, based on the number of {% data variables.product.prodname_copilot %} seats that are assigned. You can add or remove seats at any time during the billing cycle.
Billed users are calculated at the end of each billing cycle, based on the number of {% data variables.product.prodname_copilot %} seats that are assigned. Although you can add or remove seats at any time during the billing cycle, billing for removed seats continues until the end of the current billing cycle. See [AUTOTITLE](/copilot/reference/copilot-billing/license-changes).

## Reference

Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/code-review/code-review.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About Copilot code review
title: About GitHub Copilot code review
shortTitle: Code review
allowTitleToDifferFromFilename: true
intro: 'Find out how {% data variables.product.prodname_copilot_short %} can review pull requests for you.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/coding-agent/coding-agent.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About Copilot coding agent
title: About GitHub Copilot coding agent
shortTitle: Coding agent
intro: 'You can assign {% data variables.product.github %} issues to {% data variables.product.prodname_copilot_short %}, or ask {% data variables.product.prodname_copilot_short %} to create a pull request.'
product: '{% data reusables.gated-features.copilot-coding-agent %}<br><a href="https://github.com/features/copilot/plans?ref_cta=Copilot+plans+signup&ref_loc=about+assigning+issues+to+copilot&ref_page=docs" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a>'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'About enabling {% data variables.copilot.copilot_coding_agent %}'
title: About enabling GitHub Copilot coding agent
shortTitle: 'Enable {% data variables.copilot.copilot_coding_agent_short %}'
allowTitleToDifferFromFilename: true
intro: 'Find out about enabling {% data variables.copilot.copilot_coding_agent %} for {% data variables.copilot.copilot_enterprise %} and {% data variables.copilot.copilot_for_business %}, and about disabling the agent for specific repositories.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/coding-agent/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Concepts for {% data variables.copilot.copilot_coding_agent %}'
title: Concepts for GitHub Copilot coding agent
shortTitle: '{% data variables.copilot.copilot_coding_agent_short_cap_c %}'
allowTitleToDifferFromFilename: true
intro: 'Learn how {% data variables.copilot.copilot_coding_agent %} can carry out coding tasks for you, working independently in the same workflow you use yourself.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Model Context Protocol (MCP) and {% data variables.copilot.copilot_coding_agent %}'
title: Model Context Protocol (MCP) and GitHub Copilot coding agent
shortTitle: 'MCP and {% data variables.copilot.copilot_coding_agent_short %}'
allowTitleToDifferFromFilename: true
intro: 'Find out about using the Model Context Protocol (MCP) with {% data variables.copilot.copilot_coding_agent %}.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/completions/code-referencing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Copilot code referencing
title: GitHub Copilot code referencing
shortTitle: Code referencing
allowTitleToDifferFromFilename: true
intro: '{% data variables.product.prodname_copilot %} checks suggestions for matches with publicly available code. Any matches are discarded or suggested with a code reference.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/completions/code-suggestions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Copilot code suggestions in your IDE
title: GitHub Copilot code suggestions in your IDE
shortTitle: Code suggestions
allowTitleToDifferFromFilename: true
intro: 'Learn about {% data variables.product.prodname_copilot_short %} code suggestions in different IDEs.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/completions/text-completion.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Copilot text completion
title: GitHub Copilot text completion
shortTitle: Text completion
allowTitleToDifferFromFilename: true
intro: 'Learn about {% data variables.copilot.copilot_autocomplete_pr %}.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/extensions/about-extensions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About Copilot Extensions
title: About GitHub Copilot Extensions
shortTitle: About extensions
intro: 'Learn about the development process for {% data variables.copilot.copilot_extensions_short %}.'
allowTitleToDifferFromFilename: true
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/extensions/agents.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About agents for Copilot Extensions
title: About agents for GitHub Copilot Extensions
shortTitle: Agents
intro: 'Learn what {% data variables.copilot.copilot_agents %} are and how they can enhance your {% data variables.copilot.copilot_chat %} experience.'
allowTitleToDifferFromFilename: true
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/extensions/openid-connect.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: OpenID Connect (OIDC) for Copilot Extensions
title: OpenID Connect (OIDC) for GitHub Copilot Extensions
shortTitle: OpenID Connect
allowTitleToDifferFromFilename: true
intro: 'Learn how OpenID Connect (OIDC) enables {% data variables.copilot.copilot_extensions_short %} to securely authenticate users and access cloud resources without storing long-lived credentials.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/extensions/skillsets.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About skillsets for Copilot Extensions
title: About skillsets for GitHub Copilot Extensions
shortTitle: Skillsets
allowTitleToDifferFromFilename: true
intro: 'Learn what {% data variables.copilot.copilot_skillsets %} are and how they simplify integrating third-party tools and functions into your {% data variables.product.prodname_copilot_short %} experience.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/knowledge-bases.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Copilot knowledge bases
title: GitHub Copilot knowledge bases
shortTitle: Knowledge bases
intro: 'Knowledge bases allow you to bring together Markdown documentation across one or more repositories, which can then be used as context for {% data variables.copilot.copilot_chat_short %}.'
versions:
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/policies.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Copilot policies to control availability of features and models
title: GitHub Copilot policies to control availability of features and models
shortTitle: Policies
allowTitleToDifferFromFilename: true
intro: 'Learn about the policies that control the availability of {% data variables.product.prodname_copilot %} features and models for users granted a license through your organization or an organization in your enterprise.'
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/prompt-engineering.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Prompt engineering for Copilot Chat
title: Prompt engineering for GitHub Copilot Chat
shortTitle: Prompt engineering
intro: 'Follow these strategies to improve your {% data variables.product.prodname_copilot_short %} results.'
versions:
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/repository-indexes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Indexing repositories for Copilot Chat
title: Indexing repositories for GitHub Copilot Chat
shortTitle: Repository indexes
intro: '{% data variables.copilot.copilot_chat %} improves responses to questions about code by indexing your repositories.'
versions:
Expand Down
2 changes: 1 addition & 1 deletion content/copilot/concepts/spaces.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: About organizing and sharing context with Copilot Spaces
title: About organizing and sharing context with GitHub Copilot Spaces
shortTitle: Spaces
intro: 'Understand how gathering context with {% data variables.copilot.copilot_spaces %} can improve your results and help your teammates.'
permissions: 'Anyone with a {% data variables.product.prodname_copilot_short %} license can use {% data variables.copilot.copilot_spaces_short %}.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Downloading a Copilot activity report for your organization or enterprise
title: Downloading a GitHub Copilot activity report for your organization or enterprise
intro: Monitor Copilot license usage with a detailed report.
permissions: Enterprise owners and organization owners
product: '{% data variables.copilot.copilot_enterprise_short %} or {% data variables.copilot.copilot_business_short %}'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Managing {% data variables.copilot.copilot_coding_agent %} in your enterprise'
title: Managing GitHub Copilot coding agent in your enterprise
intro: 'Enable members of your enterprise to use {% data variables.copilot.copilot_coding_agent %} and control the repositories where it is available.'
allowTitleToDifferFromFilename: true
permissions: Enterprise owners
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Managing policies and features for Copilot in your enterprise
title: Managing policies and features for GitHub Copilot in your enterprise
intro: 'Control the availability of features for {% data variables.product.prodname_copilot %} in your enterprise using policies.'
permissions: Enterprise owners
product: '{% data variables.copilot.copilot_enterprise_short %} or {% data variables.copilot.copilot_business_short %}'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Canceling Copilot for your enterprise
title: Canceling GitHub Copilot for your enterprise
shortTitle: Cancel plan
intro: 'Disabling {% data variables.product.prodname_copilot %} for all organizations in your enterprise will cancel your enterprise''s {% data variables.product.prodname_copilot_short %} plan.'
permissions: Enterprise admins
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Downgrading Copilot for your enterprise
title: Downgrading GitHub Copilot for your enterprise
shortTitle: Downgrade subscription
intro: 'You can downgrade organizations in your enterprise from {% data variables.copilot.copilot_enterprise_short %} to {% data variables.copilot.copilot_business_short %}.'
permissions: Enterprise owners
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Managing the Copilot plan for your enterprise
title: Managing the GitHub Copilot plan for your enterprise
shortTitle: Manage plan
intro: 'Enterprise owners can manage the {% data variables.product.prodname_copilot_short %} plan for the enterprise.'
versions:
Expand All @@ -20,4 +20,3 @@ redirect_from:
- /copilot/how-tos/administer/manage-for-enterprise/manage-plan
contentType: how-tos
---

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Subscribing to Copilot for your enterprise
title: Subscribing to GitHub Copilot for your enterprise
shortTitle: Subscribe
intro: 'Enterprise owners can set up a {% data variables.copilot.copilot_enterprise_short %} or {% data variables.copilot.copilot_business_short %} plan for their enterprise.'
permissions: Enterprise owners
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Upgrading Copilot for your enterprise
title: Upgrading GitHub Copilot for your enterprise
shortTitle: Upgrade plan
intro: 'Change your enterprise''s plan from {% data variables.copilot.copilot_business_short %} to {% data variables.copilot.copilot_enterprise_short %}.'
permissions: Enterprise owners
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 'Adding {% data variables.copilot.copilot_coding_agent %} to your organization'
title: Adding GitHub Copilot coding agent to your organization
intro: 'Enable {% data variables.copilot.copilot_coding_agent %} for your members and control the repositories where it is available.'
allowTitleToDifferFromFilename: true
permissions: Organization owners
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Granting access to Copilot for members of your organization
title: Granting access to GitHub Copilot for members of your organization
shortTitle: Grant access
intro: 'Grant access to {% data variables.product.prodname_copilot %} for some or all of the members of your organization.'
permissions: 'Organization owners for organizations with a {% ifversion ghec %}{% data variables.copilot.copilot_enterprise_short %} or{% endif %} {% data variables.copilot.copilot_business_short %} plan.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Managing requests for Copilot Business in your organization
title: Managing requests for GitHub Copilot Business in your organization
shortTitle: Manage requests for access
intro: 'Approve or deny requests for {% data variables.product.prodname_copilot_short %} access in your organization.'
permissions: Organization owners
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Revoking access to Copilot for members of your organization
title: Revoking access to GitHub Copilot for members of your organization
shortTitle: Revoke access
intro: 'Remove access to {% data variables.product.prodname_copilot %} for some or all of the members of your organization.'
permissions: 'Organization owners for organizations with a {% ifversion ghec %}{% data variables.copilot.copilot_enterprise_short %} or{% endif %} {% data variables.copilot.copilot_business_short %} plan.'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Canceling Copilot for your organization
title: Canceling GitHub Copilot for your organization
shortTitle: Cancel
intro: 'Removing all assigned {% data variables.product.prodname_copilot %} seats in your organization will cancel your organization''s {% data variables.product.prodname_copilot_short %} plan.'
permissions: Organization owners
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Managing the Copilot plan for your organization
title: Managing the GitHub Copilot plan for your organization
shortTitle: Manage plan
intro: 'Organization owners can manage the {% data variables.product.prodname_copilot_short %} plan for their organization.'
versions:
Expand All @@ -17,4 +17,3 @@ redirect_from:
- /copilot/how-tos/administer/manage-for-organization/manage-plan
contentType: how-tos
---

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Subscribing to Copilot for your organization
title: Subscribing to GitHub Copilot for your organization
shortTitle: Subscribe
intro: 'Organization owners can set up a {% data variables.copilot.copilot_business_short %} plan for their organization.'
permissions: Organization owners
Expand Down
Loading
Loading