diff --git a/assets/images/help/code-quality/invoke-cloud-agent.png b/assets/images/help/code-quality/invoke-cloud-agent.png new file mode 100644 index 000000000000..c88e3582d188 Binary files /dev/null and b/assets/images/help/code-quality/invoke-cloud-agent.png differ diff --git a/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md b/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md index 18ea075b2636..186211d44b84 100644 --- a/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md +++ b/content/actions/reference/workflows-and-actions/events-that-trigger-workflows.md @@ -515,7 +515,16 @@ on: Runs your workflow when activity on a pull request in the workflow's repository occurs. For example, if no activity types are specified, the workflow runs when a pull request is opened or reopened or when the head branch of the pull request is updated. For activity related to pull request reviews, pull request review comments, or pull request comments, use the [`pull_request_review`](#pull_request_review), [`pull_request_review_comment`](#pull_request_review_comment), or [`issue_comment`](#issue_comment) events instead. For information about the pull request APIs, see [AUTOTITLE](/graphql/reference/objects#pullrequest) in the GraphQL API documentation or [AUTOTITLE](/rest/pulls). -Note that `GITHUB_SHA` for this event is the last merge commit of the pull request merge branch. If you want to get the commit ID for the last commit to the head branch of the pull request, use `github.event.pull_request.head.sha` instead. +Note that `GITHUB_SHA` for this event is the last merge commit of the pull request merge branch. If you want to get the commit ID for the last commit to the head branch of the pull request, use `github.event.pull_request.head.sha` instead. For more information about merge branches, see [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#pull-request-refs-and-merge-branches). + +### How the merge branch affects your workflow + +For open, mergeable pull requests, workflows triggered by the `pull_request` event set `GITHUB_REF` to the merge branch. Because `actions/checkout` uses `GITHUB_REF` by default, it checks out the merge branch. Your CI tests run against the merged result, not just the head branch alone: + +* `GITHUB_REF` is set to `refs/pull/PULL_REQUEST_NUMBER/merge` +* `GITHUB_SHA` is the SHA of the merge commit on the merge branch + +To test only the head branch commits without simulating a merge, check out the head branch using `github.event.pull_request.head.sha` in your workflow. For example, you can run a workflow when a pull request has been opened or reopened. diff --git a/content/admin/overview/setting-up-a-trial-of-github-enterprise-cloud.md b/content/admin/overview/setting-up-a-trial-of-github-enterprise-cloud.md index 1eb8a19c10fb..e103798de800 100644 --- a/content/admin/overview/setting-up-a-trial-of-github-enterprise-cloud.md +++ b/content/admin/overview/setting-up-a-trial-of-github-enterprise-cloud.md @@ -44,7 +44,6 @@ Your trial **won't** include access to {% data variables.product.prodname_ghe_se * {% data variables.product.prodname_github_codespaces %} * {% data variables.copilot.copilot_enterprise %} * {% data variables.copilot.copilot_for_business %} - * Contact {% data variables.contact.github_support %} to enable {% data variables.copilot.copilot_for_business %} during your trial. * {% data variables.product.prodname_sponsors %} * Paid {% data variables.product.prodname_marketplace %} apps * {% data variables.product.prodname_github_connect %} diff --git a/content/billing/reference/supported-payment-methods.md b/content/billing/reference/supported-payment-methods.md index 5d1f842933c9..26896a58ddb5 100644 --- a/content/billing/reference/supported-payment-methods.md +++ b/content/billing/reference/supported-payment-methods.md @@ -13,6 +13,9 @@ category: ## Metered or usage-based billing options +> [!NOTE] +> Prepaid credit/debit cards are not accepted as a valid form of payment. + The supported payment methods for metered billing: * Invoice – Managed accounts only diff --git a/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository.md b/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository.md index 0766db748373..e152f82c1eb1 100644 --- a/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository.md +++ b/content/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository.md @@ -31,6 +31,9 @@ category:  1. To automatically set a default issue title, assign the issue to people with read access to the repository, or apply labels to issues raised from the template, use the fields under "Optional additional information." You can also add these details in the issue template with `title`, `labels`, `type`, or `assignees` in a YAML frontmatter format. + > [!NOTE] + > The template name must be more than 3 characters. + 1. When you're finished editing and previewing your template, click **Propose changes** in the upper right corner of the page. 1. In the "Commit message" field, type a commit message describing your changes. 1. Below the commit message fields, select whether to commit your template directly to the default branch, or to create a new branch and open a pull request. For more information about pull requests, see [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests). @@ -50,6 +53,9 @@ Here is an example of an issue form configuration file. {% data reusables.community.issue-forms-sample %} +> [!NOTE] +> The `name` field must be more than 3 characters. If it's not, the template won't be shown when creating an issue. + Here is the rendered version of the issue form.  diff --git a/content/copilot/concepts/agents/about-agent-skills.md b/content/copilot/concepts/agents/about-agent-skills.md index 7dc1137803f6..15a42529b311 100644 --- a/content/copilot/concepts/agents/about-agent-skills.md +++ b/content/copilot/concepts/agents/about-agent-skills.md @@ -29,8 +29,8 @@ Support for organization-level and enterprise-level skills is coming soon. ## Next steps -To create an agent skill, see: +To create or add agent skills, see: -* [AUTOTITLE](/copilot/how-tos/use-copilot-agents/cloud-agent/create-skills) -* [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/create-skills) +* [AUTOTITLE](/copilot/how-tos/use-copilot-agents/cloud-agent/add-skills) +* [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-skills) * [AUTOTITLE](/copilot/reference/customization-cheat-sheet) diff --git a/content/copilot/concepts/agents/code-review.md b/content/copilot/concepts/agents/code-review.md index 15d9cbcf3116..c2f4d94eb787 100644 --- a/content/copilot/concepts/agents/code-review.md +++ b/content/copilot/concepts/agents/code-review.md @@ -26,6 +26,7 @@ This article provides an overview of {% data variables.copilot.copilot_code-revi {% data variables.copilot.copilot_code-review_short %} is supported in: * {% data variables.product.prodname_dotcom_the_website %} +* {% data variables.product.prodname_cli %} * {% data variables.product.prodname_mobile %} * {% data variables.product.prodname_vscode_shortname %} * {% data variables.product.prodname_vs %} diff --git a/content/copilot/concepts/agents/copilot-cli/index.md b/content/copilot/concepts/agents/copilot-cli/index.md index bd99c879e093..a78a8fa3a4be 100644 --- a/content/copilot/concepts/agents/copilot-cli/index.md +++ b/content/copilot/concepts/agents/copilot-cli/index.md @@ -15,6 +15,7 @@ children: - /fleet - /research - /chronicle + - /lsp-servers - /context-management contentType: concepts docsTeamMetrics: diff --git a/content/copilot/concepts/agents/copilot-cli/lsp-servers.md b/content/copilot/concepts/agents/copilot-cli/lsp-servers.md new file mode 100644 index 000000000000..9c7a6ced4c2e --- /dev/null +++ b/content/copilot/concepts/agents/copilot-cli/lsp-servers.md @@ -0,0 +1,74 @@ +--- +title: Using LSP servers with {% data variables.copilot.copilot_cli %} +shortTitle: LSP servers +allowTitleToDifferFromFilename: true +intro: 'LSP servers give {% data variables.copilot.copilot_cli_short %} precise code intelligence, enabling it to navigate definitions, find references, and rename symbols accurately across your project.' +versions: + feature: copilot +contentType: concepts +docsTeamMetrics: + - copilot-cli +category: + - Learn about Copilot # Copilot discovery page + - Learn about Copilot CLI # Copilot CLI bespoke page +--- + +## Introduction + +The Language Server Protocol (LSP) is an open standard used for communication between a code editor and a language server. A language server is a process that provides language-specific features like go-to-definition and renaming a code symbol across your codebase. An "LSP server" is any language server that supports the Language Server Protocol. + +{% data variables.copilot.copilot_cli %} can use LSP servers to understand the structure of your code more precisely. By adding and configuring an LSP server for each programming language in your project, you'll give {% data variables.copilot.copilot_cli_short %} a better understanding of your code. + +## Benefits of LSP servers + +* **Accuracy**: Results come from the language's own compiler/analyzer, providing an understanding of the structure of your code. This improves {% data variables.product.prodname_copilot_short %}'s precision when it works with your code. For example, when {% data variables.product.prodname_copilot_short %} can use "go to definition" it will find the actual definition, not a text match that looks similar. +* **Token efficiency**: Operations like "list all symbols" or "find references" return compact structured results instead of requiring the agent to read entire files into the conversation. +* **Safe refactoring**: When you rename a symbol, the LSP server reliably updates every reference across the project. +* **Speed**: Language servers index your project in the background, allowing near-instant responses. + +## What LSP servers allow {% data variables.copilot.copilot_cli_short %} to do + +When LSP servers are available, {% data variables.copilot.copilot_cli_short %} uses them automatically. You don't need to explicitly request it. {% data variables.copilot.copilot_cli_short %} will use an LSP server rather than text-based search whenever it can access an LSP server for the programming language you're using. + +The following language server operations are supported: + +| Operation | What it does | +|-----------|-------------| +| Go to definition | Jumps to where a symbol (function, class, variable) is defined. | +| Find references | Finds every location where a symbol is used. | +| Hover | Retrieves type information and documentation for a symbol. | +| Rename | Renames a symbol across the entire project, updating all references. | +| Document symbols | Lists all symbols defined in a file. | +| Workspace symbol search | Searches for symbols by name across the project. | +| Go to implementation | Finds implementations of an interface or abstract method. | +| Incoming calls | Shows which functions call a given function. | +| Outgoing calls | Shows which functions a given function calls. | + +{% data variables.product.prodname_copilot_short %} selects the most appropriate LSP operation based on your prompt. For example, if you ask "where is `handlePayment` defined?", {% data variables.product.prodname_copilot_short %} will use the go-to-definition operation. + +## How to add an LSP server + +For {% data variables.copilot.copilot_cli_short %} to be able to use an LSP server, you must first install the server software on your local machine and then configure it in one of the configuration files that {% data variables.copilot.copilot_cli_short %} reads on startup. See [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers). + +An LSP server may also be added as part of a CLI plugin that you choose to install. A plugin might include an LSP server if, for example, it's designed to work with an uncommon programming language or a framework-specific file type. LSP servers included as part of a plugin are automatically available when you install the plugin—no additional configuration is needed. If you uninstall the plugin, the LSP server is removed. For more information, see [AUTOTITLE](/copilot/concepts/agents/copilot-cli/about-cli-plugins). + +## How LSP servers are loaded + +When {% data variables.copilot.copilot_cli %} starts, it loads LSP server configurations from multiple sources with the following priority (highest to lowest): + +1. **Project config**: `.github/lsp.json` in the current repository. +1. **Plugin configs**: language servers provided by installed plugins. +1. **User config**: `~/.copilot/lsp-config.json`. + +Higher-priority configurations override lower-priority ones with the same server name. This means a project can customize or disable language servers for all contributors. + +Once the working directory is trusted, {% data variables.copilot.copilot_cli_short %} automatically starts any LSP servers that are relevant to your project, in the background, so they are ready to respond immediately when needed. + +## Next steps + +* [AUTOTITLE](/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers) + +## Further reading + +* [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) on the Microsoft website +* [AUTOTITLE](/copilot/reference/cli-command-reference) diff --git a/content/copilot/how-tos/copilot-cli/customize-copilot/create-skills.md b/content/copilot/how-tos/copilot-cli/customize-copilot/add-skills.md similarity index 83% rename from content/copilot/how-tos/copilot-cli/customize-copilot/create-skills.md rename to content/copilot/how-tos/copilot-cli/customize-copilot/add-skills.md index cd7f5d17a897..a51a76fbdb1b 100644 --- a/content/copilot/how-tos/copilot-cli/customize-copilot/create-skills.md +++ b/content/copilot/how-tos/copilot-cli/customize-copilot/add-skills.md @@ -1,11 +1,13 @@ --- -title: Creating agent skills for {% data variables.copilot.copilot_cli %} -shortTitle: Create agent skills +title: Adding agent skills for {% data variables.copilot.copilot_cli %} +shortTitle: Add agent skills allowTitleToDifferFromFilename: true intro: 'Modify {% data variables.product.prodname_copilot_short %}''s behavior and abilities when it works on particular tasks.' versions: feature: copilot contentType: how-tos +redirect_from: + - /copilot/how-tos/copilot-cli/customize-copilot/create-skills category: - Configure Copilot # Copilot discovery page - Author and optimize with Copilot # Copilot discovery page @@ -18,6 +20,12 @@ Agent skills are folders of instructions, scripts, and resources that {% data va {% data reusables.copilot.creating-adding-skills %} +1. Start a CLI session, or if you are currently in a CLI session enter `/skills reload`. +1. Enter `/skills info SKILL-NAME` to check that the skill has reloaded. + + SKILL-NAME is defined in the SKILL.md file and is typically the same as the name of the skill directory. + + ## Using agent skills {% data reusables.copilot.skills-using %} diff --git a/content/copilot/how-tos/copilot-cli/customize-copilot/index.md b/content/copilot/how-tos/copilot-cli/customize-copilot/index.md index ae4869df3634..f989232db78e 100644 --- a/content/copilot/how-tos/copilot-cli/customize-copilot/index.md +++ b/content/copilot/how-tos/copilot-cli/customize-copilot/index.md @@ -9,7 +9,7 @@ children: - /overview - /add-custom-instructions - /use-hooks - - /create-skills + - /add-skills - /add-mcp-servers - /create-custom-agents-for-cli - /use-byok-models diff --git a/content/copilot/how-tos/copilot-cli/customize-copilot/overview.md b/content/copilot/how-tos/copilot-cli/customize-copilot/overview.md index 8695c8fa99d9..6089975adb0c 100644 --- a/content/copilot/how-tos/copilot-cli/customize-copilot/overview.md +++ b/content/copilot/how-tos/copilot-cli/customize-copilot/overview.md @@ -35,7 +35,7 @@ For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-cop Skills are folders of instructions, scripts, and resources that {% data variables.product.prodname_copilot_short %} can load to improve its performance on specialized tasks. By adding skills to your project, you can give {% data variables.product.prodname_copilot_short %} extra knowledge or tools for particular workflows, technologies, or domains. -For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/create-skills). +For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-skills). ## Custom agents diff --git a/content/copilot/how-tos/copilot-cli/index.md b/content/copilot/how-tos/copilot-cli/index.md index 28e60dab6bac..101102e16629 100644 --- a/content/copilot/how-tos/copilot-cli/index.md +++ b/content/copilot/how-tos/copilot-cli/index.md @@ -34,16 +34,18 @@ children: - /content/copilot/concepts/agents/copilot-cli/about-remote-access - /content/copilot/concepts/agents/copilot-cli/fleet - /content/copilot/concepts/agents/copilot-cli/research + - /content/copilot/concepts/agents/copilot-cli/lsp-servers - /content/copilot/concepts/agents/copilot-cli/chronicle - /content/copilot/concepts/agents/copilot-cli/context-management - /set-up-copilot-cli/install-copilot-cli - /set-up-copilot-cli/configure-copilot-cli + - /set-up-copilot-cli/add-lsp-servers - /automate-copilot-cli/quickstart - /automate-copilot-cli/automate-with-actions - /automate-copilot-cli/run-cli-programmatically - /customize-copilot/add-custom-instructions - /customize-copilot/create-custom-agents-for-cli - - /customize-copilot/create-skills + - /customize-copilot/add-skills - /customize-copilot/plugins-creating - /customize-copilot/plugins-finding-installing - /customize-copilot/plugins-marketplace diff --git a/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers.md b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers.md new file mode 100644 index 000000000000..0eff54cce2f8 --- /dev/null +++ b/content/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers.md @@ -0,0 +1,295 @@ +--- +title: Adding LSP servers for {% data variables.copilot.copilot_cli %} +shortTitle: Add LSP servers +intro: 'You can add LSP servers to give {% data variables.copilot.copilot_cli_short %} precise code intelligence, improving its ability to navigate definitions, find references, and rename symbols.' +versions: + feature: copilot +contentType: how-tos +docsTeamMetrics: + - copilot-cli +category: + - Configure Copilot # Copilot discovery page + - Configure Copilot CLI # Copilot CLI bespoke page +--- + +## Introduction + +This article explains how to add LSP servers for {% data variables.copilot.copilot_cli_short %}. For conceptual information about LSP servers, see [AUTOTITLE](/copilot/concepts/agents/copilot-cli/lsp-servers). + +Adding an LSP server for {% data variables.copilot.copilot_cli_short %} is a two-step process: + +1. Install the LSP server software on your local machine. +1. Configure the server in a configuration file. + +These steps are described in detail in this article. + +## Installing and configuring an LSP server + +You can add an LSP server for a specific language by either: +* Using the `lsp-setup` skill, which automates the process. +* Manually installing the server software and then configuring {% data variables.copilot.copilot_cli_short %} to use the server. + +These two approaches are described in the sections below. + +## Using the `lsp-setup` skill to add a language server + +The `lsp-setup` skill from the "Awesome {% data variables.product.prodname_copilot %}" repository automates the installation and configuration of a selection of popular languages. + +1. Go to the "Awesome {% data variables.product.prodname_copilot %}" download site and search for "lsp": + + https://awesome-copilot.github.com/skills/?q=lsp. + +1. Download the `lsp-setup` skill. +1. Unzip the downloaded `.zip` file to create a directory called `lsp-setup`. +1. Move the `lsp-setup` directory into either: + + * Your personal skills directory: `~/.copilot/skills/`. + * A project skills directory: `.github/skills/` in a Git repository. + +1. Start {% data variables.copilot.copilot_cli_short %}, or if you are currently in a CLI session enter `/skills reload`. +1. Enter the prompt: + + ```copilot copy + setup lsp + ``` + +1. Follow the on-screen instructions to select the language for the server you want to set up, then complete the additional steps. +1. When the process is complete, enter `/lsp reload` to load the new LSP server. +1. Check that the server has been added and is working correctly. See [Confirming that an LSP server is available](#confirming-that-an-lsp-server-is-available) later in this article. + +## Manually installing and configuring an LSP server + +Installing an LSP server for a specific language typically involves installing a package via a package manager such as `npm`, `gem`, or `pip`. + +To manually install an LSP server, refer to the documentation for the specific language server you want to install. Listed below are some example commands for installing popular LSP servers. + +> [!NOTE] +> Useful resources for finding LSP servers for different languages include: +> * [Implementations](https://microsoft.github.io/language-server-protocol/implementors/servers/) on Microsoft's Language Server Protocol website. +> * [Language Server Protocol](https://wiki.archlinux.org/title/Language_Server_Protocol) on the Arch Linux website. + +> [!CAUTION] +> Only install LSP servers from sources you trust. + +### Example installation command: TypeScript and JavaScript + +If you have Node.js installed, you can install the `typescript-language-server` LSP server with the following command: + +```bash copy +npm install -g typescript typescript-language-server +``` + +The `typescript-language-server` LSP server supports both TypeScript and JavaScript. + +### Example installation command: Ruby + +If you have gem installed, you can install the `ruby-lsp` LSP server with the following command: + +```bash copy +gem install ruby-lsp +``` + +Alternatively, you can install the `solargraph` LSP server for Ruby with: + +```bash copy +gem install solargraph +``` + +### Example installation command: Python + +If you have Node.js installed, you can install the `pyright` LSP server with the following command: + +```bash copy +npm install -g pyright +``` + +Alternatively, if you have pip installed, you can install the `python-lsp-server` LSP server with: + +```bash copy +pip install python-lsp-server +``` + +## Configuring the language server + +1. To configure the LSP server, add a server definition to either of the two configuration files: + + * **User configuration**: `~/.copilot/lsp-config.json` applies to all your projects. + * **Project configuration**: `.github/lsp.json`, in your repository, applies to everyone working on that project. + + Both files use the same JSON syntax: + + ```json + { + "lspServers": { + "SERVER-NAME": { + "command": "COMMAND", + "args": ["ARG1", "ARG2"], + "fileExtensions": { + ".EXT": "LANGUAGE-ID" + } + }, + "ANOTHER-SERVER": { + ... + } + } + } + ``` + + Some examples of server definitions for specific LSP servers are provided later in this article. + +1. After installing and configuring the server, confirm that {% data variables.copilot.copilot_cli_short %} can use it. See [Confirming that an LSP server is available](#confirming-that-an-lsp-server-is-available) below. + +### Configuration fields + +Each server definition in the configuration file must have a unique name and contain only alphanumeric characters, underscores, and hyphens. + +Within each server definition, the following fields are available/required: + +
| Field | +Required | +Description | +
|---|---|---|
command |
+ Yes | +The command used to start the LSP server. | +
args |
+ No | +Arguments to pass to the command. | +
fileExtensions |
+ Yes | +A JSON map of file extensions and their corresponding language ID (for example, { ".rs": "rust" }). |
+
env |
+ No | +Environment variables to set when starting the server. Supports ${VAR} and ${VAR:-default} expansion syntax. |
+
rootUri |
+ No | +The root directory for the LSP server, relative to the Git root. Defaults to ".". Useful for monorepos. If your project lives in a subdirectory of the Git repository rather than the repository root, set rootUri to that subdirectory path. |
+
initializationOptions |
+ No | +Custom options sent to the server during startup. | +
requestTimeoutMs |
+ No | +The timeout for server requests in milliseconds (default: 90 seconds). | +
The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "string", + "name": "policy_state", + "description": "The policy state for Copilot coding agent in the enterprise. Can be one of enabled_for_all_orgs, disabled_for_all_orgs, enabled_for_selected_orgs, or configured_by_org_admins.
Sets the policy for Copilot coding agent usage across an enterprise.
\nEnterprise owners can configure whether Copilot coding agent is enabled for all\norganizations, disabled for all organizations, configured by individual organization\nadmins, or enabled for selected organizations only.
\nOnly enterprise owners can set the coding agent policy for their enterprise.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "post", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent/organizations", + "title": "Add organizations to the enterprise coding agent policy", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "array of strings", + "name": "organizations", + "description": "List of organization logins within the enterprise to enable Copilot coding agent for.
" + }, + { + "type": "array of objects", + "name": "custom_properties", + "description": "List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
", + "childParamsGroups": [ + { + "type": "string", + "name": "property_name", + "description": "The name of the custom property to filter by.
", + "isRequired": true + }, + { + "type": "array of strings", + "name": "values", + "description": "The values of the custom property to match.
", + "isRequired": true + } + ] + } + ], + "descriptionHTML": "Enables Copilot coding agent for the specified organizations within the enterprise.
\nThe enterprise's coding agent policy must be set to enabled_for_selected_orgs before\nusing this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
\nOnly enterprise owners can add organizations to the coding agent policy.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "delete", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent/organizations", + "title": "Remove organizations from the enterprise coding agent policy", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "array of strings", + "name": "organizations", + "description": "List of organization logins within the enterprise to disable Copilot coding agent for.
" + }, + { + "type": "array of objects", + "name": "custom_properties", + "description": "List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
", + "childParamsGroups": [ + { + "type": "string", + "name": "property_name", + "description": "The name of the custom property to filter by.
", + "isRequired": true + }, + { + "type": "array of strings", + "name": "values", + "description": "The values of the custom property to match.
", + "isRequired": true + } + ] + } + ], + "descriptionHTML": "Disables Copilot coding agent for the specified organizations within the enterprise.
\nThe enterprise's coding agent policy must be set to enabled_for_selected_orgs before\nusing this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
\nOnly enterprise owners can remove organizations from the coding agent policy.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, { "serverUrl": "https://api.github.com", "verb": "get", diff --git a/src/rest/data/fpt-2022-11-28/dependabot.json b/src/rest/data/fpt-2022-11-28/dependabot.json index 7664388036e1..4630ed28c98d 100644 --- a/src/rest/data/fpt-2022-11-28/dependabot.json +++ b/src/rest/data/fpt-2022-11-28/dependabot.json @@ -7464,7 +7464,7 @@ { "serverUrl": "https://api.github.com", "verb": "get", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Lists the repositories Dependabot can access in an organization", "category": "dependabot", "subcategory": "repository-access", @@ -8020,7 +8020,7 @@ { "serverUrl": "https://api.github.com", "verb": "patch", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Updates Dependabot's repository access list for an organization", "category": "dependabot", "subcategory": "repository-access", @@ -8093,7 +8093,7 @@ { "serverUrl": "https://api.github.com", "verb": "put", - "requestPath": "/organizations/{org}/dependabot/repository-access/default-level", + "requestPath": "/orgs/{org}/dependabot/repository-access/default-level", "title": "Set the default repository access level for Dependabot", "category": "dependabot", "subcategory": "repository-access", diff --git a/src/rest/data/fpt-2022-11-28/dependency-graph.json b/src/rest/data/fpt-2022-11-28/dependency-graph.json index 70fb8a8018b7..90607a62640a 100644 --- a/src/rest/data/fpt-2022-11-28/dependency-graph.json +++ b/src/rest/data/fpt-2022-11-28/dependency-graph.json @@ -836,6 +836,177 @@ ], "allowsPublicRead": true } + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/dependency-graph/sbom/fetch-report/{sbom_uuid}", + "title": "Fetch a software bill of materials (SBOM) for a repository.", + "category": "dependency-graph", + "subcategory": "sboms", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git extension. The name is not case sensitive.
The unique identifier of the SBOM export.
", + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "descriptionHTML": "Fetches a previously generated software bill of materials (SBOM) for a repository.\nWhen the SBOM is ready, the response is a 302 redirect to a temporary download URL for the SBOM in SPDX JSON format.\nThe generated SBOM report may be retained for up to one week from the original request.\nThe temporary download URL returned by this endpoint expires separately, and its expiry is set when the fetch request is made.
", + "codeExamples": [ + { + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO", + "sbom_uuid": "SBOM_UUID" + } + }, + "response": { + "statusCode": "202", + "description": "SBOM is still being processed, no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "202", + "description": "SBOM is still being processed, no content is returned.
" + }, + { + "httpStatusCode": "302", + "description": "Redirects to a temporary download URL for the completed SBOM.
" + }, + { + "httpStatusCode": "403", + "description": "Forbidden
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Contents\" repository permissions": "read" + } + ], + "allowsPublicRead": true + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/dependency-graph/sbom/generate-report", + "title": "Request generation of a software bill of materials (SBOM) for a repository.", + "category": "dependency-graph", + "subcategory": "sboms", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git extension. The name is not case sensitive.
Triggers a job to generate a software bill of materials (SBOM) for a repository in SPDX JSON format.
", + "codeExamples": [ + { + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO" + } + }, + "response": { + "statusCode": "201", + "contentType": "application/json", + "description": "Response
", + "example": { + "sbom_url": "https://api.github.com/repos/github/example/dependency-graph/sbom/fetch-report/4bab1a7e-da63-4828-9488-44e0e01a7c1b" + }, + "schema": { + "type": "object", + "properties": { + "sbom_url": { + "type": "string", + "description": "URL to poll for the SBOM export result." + } + } + } + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "201", + "description": "Created
" + }, + { + "httpStatusCode": "403", + "description": "Forbidden
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Contents\" repository permissions": "read" + } + ], + "allowsPublicRead": true + } } ] } \ No newline at end of file diff --git a/src/rest/data/fpt-2026-03-10/copilot.json b/src/rest/data/fpt-2026-03-10/copilot.json index 3e7db53b16c8..799f4dc71cdd 100644 --- a/src/rest/data/fpt-2026-03-10/copilot.json +++ b/src/rest/data/fpt-2026-03-10/copilot.json @@ -1,5 +1,263 @@ { "copilot-coding-agent-management": [ + { + "serverUrl": "https://api.github.com", + "verb": "put", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent", + "title": "Set the coding agent policy for an enterprise", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "string", + "name": "policy_state", + "description": "The policy state for Copilot coding agent in the enterprise. Can be one of enabled_for_all_orgs, disabled_for_all_orgs, enabled_for_selected_orgs, or configured_by_org_admins.
Sets the policy for Copilot coding agent usage across an enterprise.
\nEnterprise owners can configure whether Copilot coding agent is enabled for all\norganizations, disabled for all organizations, configured by individual organization\nadmins, or enabled for selected organizations only.
\nOnly enterprise owners can set the coding agent policy for their enterprise.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "post", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent/organizations", + "title": "Add organizations to the enterprise coding agent policy", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "array of strings", + "name": "organizations", + "description": "List of organization logins within the enterprise to enable Copilot coding agent for.
" + }, + { + "type": "array of objects", + "name": "custom_properties", + "description": "List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
", + "childParamsGroups": [ + { + "type": "string", + "name": "property_name", + "description": "The name of the custom property to filter by.
", + "isRequired": true + }, + { + "type": "array of strings", + "name": "values", + "description": "The values of the custom property to match.
", + "isRequired": true + } + ] + } + ], + "descriptionHTML": "Enables Copilot coding agent for the specified organizations within the enterprise.
\nThe enterprise's coding agent policy must be set to enabled_for_selected_orgs before\nusing this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
\nOnly enterprise owners can add organizations to the coding agent policy.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "delete", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent/organizations", + "title": "Remove organizations from the enterprise coding agent policy", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "array of strings", + "name": "organizations", + "description": "List of organization logins within the enterprise to disable Copilot coding agent for.
" + }, + { + "type": "array of objects", + "name": "custom_properties", + "description": "List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
", + "childParamsGroups": [ + { + "type": "string", + "name": "property_name", + "description": "The name of the custom property to filter by.
", + "isRequired": true + }, + { + "type": "array of strings", + "name": "values", + "description": "The values of the custom property to match.
", + "isRequired": true + } + ] + } + ], + "descriptionHTML": "Disables Copilot coding agent for the specified organizations within the enterprise.
\nThe enterprise's coding agent policy must be set to enabled_for_selected_orgs before\nusing this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
\nOnly enterprise owners can remove organizations from the coding agent policy.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, { "serverUrl": "https://api.github.com", "verb": "get", diff --git a/src/rest/data/fpt-2026-03-10/dependabot.json b/src/rest/data/fpt-2026-03-10/dependabot.json index 17e23bc2700c..cfed61fe0528 100644 --- a/src/rest/data/fpt-2026-03-10/dependabot.json +++ b/src/rest/data/fpt-2026-03-10/dependabot.json @@ -7324,7 +7324,7 @@ { "serverUrl": "https://api.github.com", "verb": "get", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Lists the repositories Dependabot can access in an organization", "category": "dependabot", "subcategory": "repository-access", @@ -7880,7 +7880,7 @@ { "serverUrl": "https://api.github.com", "verb": "patch", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Updates Dependabot's repository access list for an organization", "category": "dependabot", "subcategory": "repository-access", @@ -7953,7 +7953,7 @@ { "serverUrl": "https://api.github.com", "verb": "put", - "requestPath": "/organizations/{org}/dependabot/repository-access/default-level", + "requestPath": "/orgs/{org}/dependabot/repository-access/default-level", "title": "Set the default repository access level for Dependabot", "category": "dependabot", "subcategory": "repository-access", diff --git a/src/rest/data/fpt-2026-03-10/dependency-graph.json b/src/rest/data/fpt-2026-03-10/dependency-graph.json index 70fb8a8018b7..90607a62640a 100644 --- a/src/rest/data/fpt-2026-03-10/dependency-graph.json +++ b/src/rest/data/fpt-2026-03-10/dependency-graph.json @@ -836,6 +836,177 @@ ], "allowsPublicRead": true } + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/dependency-graph/sbom/fetch-report/{sbom_uuid}", + "title": "Fetch a software bill of materials (SBOM) for a repository.", + "category": "dependency-graph", + "subcategory": "sboms", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git extension. The name is not case sensitive.
The unique identifier of the SBOM export.
", + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "descriptionHTML": "Fetches a previously generated software bill of materials (SBOM) for a repository.\nWhen the SBOM is ready, the response is a 302 redirect to a temporary download URL for the SBOM in SPDX JSON format.\nThe generated SBOM report may be retained for up to one week from the original request.\nThe temporary download URL returned by this endpoint expires separately, and its expiry is set when the fetch request is made.
", + "codeExamples": [ + { + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO", + "sbom_uuid": "SBOM_UUID" + } + }, + "response": { + "statusCode": "202", + "description": "SBOM is still being processed, no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "202", + "description": "SBOM is still being processed, no content is returned.
" + }, + { + "httpStatusCode": "302", + "description": "Redirects to a temporary download URL for the completed SBOM.
" + }, + { + "httpStatusCode": "403", + "description": "Forbidden
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Contents\" repository permissions": "read" + } + ], + "allowsPublicRead": true + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/dependency-graph/sbom/generate-report", + "title": "Request generation of a software bill of materials (SBOM) for a repository.", + "category": "dependency-graph", + "subcategory": "sboms", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git extension. The name is not case sensitive.
Triggers a job to generate a software bill of materials (SBOM) for a repository in SPDX JSON format.
", + "codeExamples": [ + { + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO" + } + }, + "response": { + "statusCode": "201", + "contentType": "application/json", + "description": "Response
", + "example": { + "sbom_url": "https://api.github.com/repos/github/example/dependency-graph/sbom/fetch-report/4bab1a7e-da63-4828-9488-44e0e01a7c1b" + }, + "schema": { + "type": "object", + "properties": { + "sbom_url": { + "type": "string", + "description": "URL to poll for the SBOM export result." + } + } + } + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "201", + "description": "Created
" + }, + { + "httpStatusCode": "403", + "description": "Forbidden
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Contents\" repository permissions": "read" + } + ], + "allowsPublicRead": true + } } ] } \ No newline at end of file diff --git a/src/rest/data/ghec-2022-11-28/copilot.json b/src/rest/data/ghec-2022-11-28/copilot.json index 6c13b55e3702..8c52e2c72b85 100644 --- a/src/rest/data/ghec-2022-11-28/copilot.json +++ b/src/rest/data/ghec-2022-11-28/copilot.json @@ -1,5 +1,263 @@ { "copilot-coding-agent-management": [ + { + "serverUrl": "https://api.github.com", + "verb": "put", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent", + "title": "Set the coding agent policy for an enterprise", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "string", + "name": "policy_state", + "description": "The policy state for Copilot coding agent in the enterprise. Can be one of enabled_for_all_orgs, disabled_for_all_orgs, enabled_for_selected_orgs, or configured_by_org_admins.
Sets the policy for Copilot coding agent usage across an enterprise.
\nEnterprise owners can configure whether Copilot coding agent is enabled for all\norganizations, disabled for all organizations, configured by individual organization\nadmins, or enabled for selected organizations only.
\nOnly enterprise owners can set the coding agent policy for their enterprise.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "post", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent/organizations", + "title": "Add organizations to the enterprise coding agent policy", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "array of strings", + "name": "organizations", + "description": "List of organization logins within the enterprise to enable Copilot coding agent for.
" + }, + { + "type": "array of objects", + "name": "custom_properties", + "description": "List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
", + "childParamsGroups": [ + { + "type": "string", + "name": "property_name", + "description": "The name of the custom property to filter by.
", + "isRequired": true + }, + { + "type": "array of strings", + "name": "values", + "description": "The values of the custom property to match.
", + "isRequired": true + } + ] + } + ], + "descriptionHTML": "Enables Copilot coding agent for the specified organizations within the enterprise.
\nThe enterprise's coding agent policy must be set to enabled_for_selected_orgs before\nusing this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
\nOnly enterprise owners can add organizations to the coding agent policy.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "delete", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent/organizations", + "title": "Remove organizations from the enterprise coding agent policy", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "array of strings", + "name": "organizations", + "description": "List of organization logins within the enterprise to disable Copilot coding agent for.
" + }, + { + "type": "array of objects", + "name": "custom_properties", + "description": "List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
", + "childParamsGroups": [ + { + "type": "string", + "name": "property_name", + "description": "The name of the custom property to filter by.
", + "isRequired": true + }, + { + "type": "array of strings", + "name": "values", + "description": "The values of the custom property to match.
", + "isRequired": true + } + ] + } + ], + "descriptionHTML": "Disables Copilot coding agent for the specified organizations within the enterprise.
\nThe enterprise's coding agent policy must be set to enabled_for_selected_orgs before\nusing this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
\nOnly enterprise owners can remove organizations from the coding agent policy.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, { "serverUrl": "https://api.github.com", "verb": "get", diff --git a/src/rest/data/ghec-2022-11-28/dependabot.json b/src/rest/data/ghec-2022-11-28/dependabot.json index 7c21f50edad3..ec969b68e554 100644 --- a/src/rest/data/ghec-2022-11-28/dependabot.json +++ b/src/rest/data/ghec-2022-11-28/dependabot.json @@ -9170,7 +9170,7 @@ { "serverUrl": "https://api.github.com", "verb": "get", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Lists the repositories Dependabot can access in an organization", "category": "dependabot", "subcategory": "repository-access", @@ -9726,7 +9726,7 @@ { "serverUrl": "https://api.github.com", "verb": "patch", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Updates Dependabot's repository access list for an organization", "category": "dependabot", "subcategory": "repository-access", @@ -9799,7 +9799,7 @@ { "serverUrl": "https://api.github.com", "verb": "put", - "requestPath": "/organizations/{org}/dependabot/repository-access/default-level", + "requestPath": "/orgs/{org}/dependabot/repository-access/default-level", "title": "Set the default repository access level for Dependabot", "category": "dependabot", "subcategory": "repository-access", diff --git a/src/rest/data/ghec-2022-11-28/dependency-graph.json b/src/rest/data/ghec-2022-11-28/dependency-graph.json index 70fb8a8018b7..90607a62640a 100644 --- a/src/rest/data/ghec-2022-11-28/dependency-graph.json +++ b/src/rest/data/ghec-2022-11-28/dependency-graph.json @@ -836,6 +836,177 @@ ], "allowsPublicRead": true } + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/dependency-graph/sbom/fetch-report/{sbom_uuid}", + "title": "Fetch a software bill of materials (SBOM) for a repository.", + "category": "dependency-graph", + "subcategory": "sboms", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git extension. The name is not case sensitive.
The unique identifier of the SBOM export.
", + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "descriptionHTML": "Fetches a previously generated software bill of materials (SBOM) for a repository.\nWhen the SBOM is ready, the response is a 302 redirect to a temporary download URL for the SBOM in SPDX JSON format.\nThe generated SBOM report may be retained for up to one week from the original request.\nThe temporary download URL returned by this endpoint expires separately, and its expiry is set when the fetch request is made.
", + "codeExamples": [ + { + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO", + "sbom_uuid": "SBOM_UUID" + } + }, + "response": { + "statusCode": "202", + "description": "SBOM is still being processed, no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "202", + "description": "SBOM is still being processed, no content is returned.
" + }, + { + "httpStatusCode": "302", + "description": "Redirects to a temporary download URL for the completed SBOM.
" + }, + { + "httpStatusCode": "403", + "description": "Forbidden
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Contents\" repository permissions": "read" + } + ], + "allowsPublicRead": true + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/dependency-graph/sbom/generate-report", + "title": "Request generation of a software bill of materials (SBOM) for a repository.", + "category": "dependency-graph", + "subcategory": "sboms", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git extension. The name is not case sensitive.
Triggers a job to generate a software bill of materials (SBOM) for a repository in SPDX JSON format.
", + "codeExamples": [ + { + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO" + } + }, + "response": { + "statusCode": "201", + "contentType": "application/json", + "description": "Response
", + "example": { + "sbom_url": "https://api.github.com/repos/github/example/dependency-graph/sbom/fetch-report/4bab1a7e-da63-4828-9488-44e0e01a7c1b" + }, + "schema": { + "type": "object", + "properties": { + "sbom_url": { + "type": "string", + "description": "URL to poll for the SBOM export result." + } + } + } + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "201", + "description": "Created
" + }, + { + "httpStatusCode": "403", + "description": "Forbidden
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Contents\" repository permissions": "read" + } + ], + "allowsPublicRead": true + } } ] } \ No newline at end of file diff --git a/src/rest/data/ghec-2026-03-10/copilot.json b/src/rest/data/ghec-2026-03-10/copilot.json index c9e1f507ac02..0683ef2ed3e2 100644 --- a/src/rest/data/ghec-2026-03-10/copilot.json +++ b/src/rest/data/ghec-2026-03-10/copilot.json @@ -1,5 +1,263 @@ { "copilot-coding-agent-management": [ + { + "serverUrl": "https://api.github.com", + "verb": "put", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent", + "title": "Set the coding agent policy for an enterprise", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "string", + "name": "policy_state", + "description": "The policy state for Copilot coding agent in the enterprise. Can be one of enabled_for_all_orgs, disabled_for_all_orgs, enabled_for_selected_orgs, or configured_by_org_admins.
Sets the policy for Copilot coding agent usage across an enterprise.
\nEnterprise owners can configure whether Copilot coding agent is enabled for all\norganizations, disabled for all organizations, configured by individual organization\nadmins, or enabled for selected organizations only.
\nOnly enterprise owners can set the coding agent policy for their enterprise.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "post", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent/organizations", + "title": "Add organizations to the enterprise coding agent policy", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "array of strings", + "name": "organizations", + "description": "List of organization logins within the enterprise to enable Copilot coding agent for.
" + }, + { + "type": "array of objects", + "name": "custom_properties", + "description": "List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
", + "childParamsGroups": [ + { + "type": "string", + "name": "property_name", + "description": "The name of the custom property to filter by.
", + "isRequired": true + }, + { + "type": "array of strings", + "name": "values", + "description": "The values of the custom property to match.
", + "isRequired": true + } + ] + } + ], + "descriptionHTML": "Enables Copilot coding agent for the specified organizations within the enterprise.
\nThe enterprise's coding agent policy must be set to enabled_for_selected_orgs before\nusing this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
\nOnly enterprise owners can add organizations to the coding agent policy.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "delete", + "requestPath": "/enterprises/{enterprise}/copilot/policies/coding_agent/organizations", + "title": "Remove organizations from the enterprise coding agent policy", + "category": "copilot", + "subcategory": "copilot-coding-agent-management", + "parameters": [ + { + "name": "enterprise", + "description": "The slug version of the enterprise name.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "array of strings", + "name": "organizations", + "description": "List of organization logins within the enterprise to disable Copilot coding agent for.
" + }, + { + "type": "array of objects", + "name": "custom_properties", + "description": "List of custom property filters to match organizations. Organizations matching any of the specified property name/value pairs will be included. This is a one-time operation, setting the property on an organization in the future will not automatically update its coding agent policy.
", + "childParamsGroups": [ + { + "type": "string", + "name": "property_name", + "description": "The name of the custom property to filter by.
", + "isRequired": true + }, + { + "type": "array of strings", + "name": "values", + "description": "The values of the custom property to match.
", + "isRequired": true + } + ] + } + ], + "descriptionHTML": "Disables Copilot coding agent for the specified organizations within the enterprise.
\nThe enterprise's coding agent policy must be set to enabled_for_selected_orgs before\nusing this endpoint. Organizations can be specified by login or matched via custom properties.
Only organizations that have Copilot enabled and belong to the enterprise will be affected.
\nOnly enterprise owners can remove organizations from the coding agent policy.
\nOAuth app tokens and personal access tokens (classic) need either the manage_billing:copilot or admin:enterprise scopes to use this endpoint.
A header with no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "204", + "description": "A header with no content is returned.
" + }, + { + "httpStatusCode": "400", + "description": "Bad Request
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": false, + "serverToServer": false, + "fineGrainedPat": false, + "permissions": [] + } + }, { "serverUrl": "https://api.github.com", "verb": "get", diff --git a/src/rest/data/ghec-2026-03-10/dependabot.json b/src/rest/data/ghec-2026-03-10/dependabot.json index d260ed13bf74..725299dba9cc 100644 --- a/src/rest/data/ghec-2026-03-10/dependabot.json +++ b/src/rest/data/ghec-2026-03-10/dependabot.json @@ -9030,7 +9030,7 @@ { "serverUrl": "https://api.github.com", "verb": "get", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Lists the repositories Dependabot can access in an organization", "category": "dependabot", "subcategory": "repository-access", @@ -9586,7 +9586,7 @@ { "serverUrl": "https://api.github.com", "verb": "patch", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Updates Dependabot's repository access list for an organization", "category": "dependabot", "subcategory": "repository-access", @@ -9659,7 +9659,7 @@ { "serverUrl": "https://api.github.com", "verb": "put", - "requestPath": "/organizations/{org}/dependabot/repository-access/default-level", + "requestPath": "/orgs/{org}/dependabot/repository-access/default-level", "title": "Set the default repository access level for Dependabot", "category": "dependabot", "subcategory": "repository-access", diff --git a/src/rest/data/ghec-2026-03-10/dependency-graph.json b/src/rest/data/ghec-2026-03-10/dependency-graph.json index 70fb8a8018b7..90607a62640a 100644 --- a/src/rest/data/ghec-2026-03-10/dependency-graph.json +++ b/src/rest/data/ghec-2026-03-10/dependency-graph.json @@ -836,6 +836,177 @@ ], "allowsPublicRead": true } + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/dependency-graph/sbom/fetch-report/{sbom_uuid}", + "title": "Fetch a software bill of materials (SBOM) for a repository.", + "category": "dependency-graph", + "subcategory": "sboms", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git extension. The name is not case sensitive.
The unique identifier of the SBOM export.
", + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "descriptionHTML": "Fetches a previously generated software bill of materials (SBOM) for a repository.\nWhen the SBOM is ready, the response is a 302 redirect to a temporary download URL for the SBOM in SPDX JSON format.\nThe generated SBOM report may be retained for up to one week from the original request.\nThe temporary download URL returned by this endpoint expires separately, and its expiry is set when the fetch request is made.
", + "codeExamples": [ + { + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO", + "sbom_uuid": "SBOM_UUID" + } + }, + "response": { + "statusCode": "202", + "description": "SBOM is still being processed, no content is returned.
" + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "202", + "description": "SBOM is still being processed, no content is returned.
" + }, + { + "httpStatusCode": "302", + "description": "Redirects to a temporary download URL for the completed SBOM.
" + }, + { + "httpStatusCode": "403", + "description": "Forbidden
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Contents\" repository permissions": "read" + } + ], + "allowsPublicRead": true + } + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/repos/{owner}/{repo}/dependency-graph/sbom/generate-report", + "title": "Request generation of a software bill of materials (SBOM) for a repository.", + "category": "dependency-graph", + "subcategory": "sboms", + "parameters": [ + { + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "repo", + "description": "The name of the repository without the .git extension. The name is not case sensitive.
Triggers a job to generate a software bill of materials (SBOM) for a repository in SPDX JSON format.
", + "codeExamples": [ + { + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "owner": "OWNER", + "repo": "REPO" + } + }, + "response": { + "statusCode": "201", + "contentType": "application/json", + "description": "Response
", + "example": { + "sbom_url": "https://api.github.com/repos/github/example/dependency-graph/sbom/fetch-report/4bab1a7e-da63-4828-9488-44e0e01a7c1b" + }, + "schema": { + "type": "object", + "properties": { + "sbom_url": { + "type": "string", + "description": "URL to poll for the SBOM export result." + } + } + } + } + } + ], + "statusCodes": [ + { + "httpStatusCode": "201", + "description": "Created
" + }, + { + "httpStatusCode": "403", + "description": "Forbidden
" + }, + { + "httpStatusCode": "404", + "description": "Resource not found
" + } + ], + "previews": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Contents\" repository permissions": "read" + } + ], + "allowsPublicRead": true + } } ] } \ No newline at end of file diff --git a/src/rest/data/ghes-3.18-2022-11-28/dependabot.json b/src/rest/data/ghes-3.18-2022-11-28/dependabot.json index 77702381f82f..dcbdf6d3ddd2 100644 --- a/src/rest/data/ghes-3.18-2022-11-28/dependabot.json +++ b/src/rest/data/ghes-3.18-2022-11-28/dependabot.json @@ -6696,7 +6696,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "get", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Lists the repositories Dependabot can access in an organization", "category": "dependabot", "subcategory": "repository-access", @@ -7252,7 +7252,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "patch", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Updates Dependabot's repository access list for an organization", "category": "dependabot", "subcategory": "repository-access", @@ -7325,7 +7325,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "put", - "requestPath": "/organizations/{org}/dependabot/repository-access/default-level", + "requestPath": "/orgs/{org}/dependabot/repository-access/default-level", "title": "Set the default repository access level for Dependabot", "category": "dependabot", "subcategory": "repository-access", diff --git a/src/rest/data/ghes-3.19-2022-11-28/dependabot.json b/src/rest/data/ghes-3.19-2022-11-28/dependabot.json index f639eff618ad..f25d783e037c 100644 --- a/src/rest/data/ghes-3.19-2022-11-28/dependabot.json +++ b/src/rest/data/ghes-3.19-2022-11-28/dependabot.json @@ -7981,7 +7981,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "get", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Lists the repositories Dependabot can access in an organization", "category": "dependabot", "subcategory": "repository-access", @@ -8537,7 +8537,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "patch", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Updates Dependabot's repository access list for an organization", "category": "dependabot", "subcategory": "repository-access", @@ -8610,7 +8610,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "put", - "requestPath": "/organizations/{org}/dependabot/repository-access/default-level", + "requestPath": "/orgs/{org}/dependabot/repository-access/default-level", "title": "Set the default repository access level for Dependabot", "category": "dependabot", "subcategory": "repository-access", diff --git a/src/rest/data/ghes-3.20-2022-11-28/dependabot.json b/src/rest/data/ghes-3.20-2022-11-28/dependabot.json index fa42df4b6b8f..4933ea6f1ce7 100644 --- a/src/rest/data/ghes-3.20-2022-11-28/dependabot.json +++ b/src/rest/data/ghes-3.20-2022-11-28/dependabot.json @@ -8324,7 +8324,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "get", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Lists the repositories Dependabot can access in an organization", "category": "dependabot", "subcategory": "repository-access", @@ -8880,7 +8880,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "patch", - "requestPath": "/organizations/{org}/dependabot/repository-access", + "requestPath": "/orgs/{org}/dependabot/repository-access", "title": "Updates Dependabot's repository access list for an organization", "category": "dependabot", "subcategory": "repository-access", @@ -8953,7 +8953,7 @@ { "serverUrl": "http(s)://HOSTNAME/api/v3", "verb": "put", - "requestPath": "/organizations/{org}/dependabot/repository-access/default-level", + "requestPath": "/orgs/{org}/dependabot/repository-access/default-level", "title": "Set the default repository access level for Dependabot", "category": "dependabot", "subcategory": "repository-access", diff --git a/src/rest/lib/config.json b/src/rest/lib/config.json index b43b3c705a5e..019cea1ec2f2 100644 --- a/src/rest/lib/config.json +++ b/src/rest/lib/config.json @@ -55,5 +55,5 @@ ] } }, - "sha": "e6a345665a64530821d4ebcd07e7805a0cdeff09" + "sha": "2b6e93c2823a6f5dc1f6a3727b6b53eafa407fb2" } \ No newline at end of file diff --git a/src/secret-scanning/data/pattern-docs/fpt/public-docs.yml b/src/secret-scanning/data/pattern-docs/fpt/public-docs.yml index 16a917c84ce2..0381e0fb12fb 100644 --- a/src/secret-scanning/data/pattern-docs/fpt/public-docs.yml +++ b/src/secret-scanning/data/pattern-docs/fpt/public-docs.yml @@ -1457,7 +1457,7 @@ secretType: cloudflare_account_api_token isPublic: true isPrivateWithGhas: true - hasPushProtection: false + hasPushProtection: true hasValidityCheck: false hasExtendedMetadata: false base64Supported: false @@ -1467,7 +1467,7 @@ secretType: cloudflare_global_user_api_key isPublic: true isPrivateWithGhas: true - hasPushProtection: false + hasPushProtection: true hasValidityCheck: false hasExtendedMetadata: false base64Supported: false @@ -1477,7 +1477,7 @@ secretType: cloudflare_user_api_token isPublic: true isPrivateWithGhas: true - hasPushProtection: false + hasPushProtection: true hasValidityCheck: false hasExtendedMetadata: false base64Supported: false diff --git a/src/secret-scanning/data/pattern-docs/ghec/public-docs.yml b/src/secret-scanning/data/pattern-docs/ghec/public-docs.yml index 16a917c84ce2..0381e0fb12fb 100644 --- a/src/secret-scanning/data/pattern-docs/ghec/public-docs.yml +++ b/src/secret-scanning/data/pattern-docs/ghec/public-docs.yml @@ -1457,7 +1457,7 @@ secretType: cloudflare_account_api_token isPublic: true isPrivateWithGhas: true - hasPushProtection: false + hasPushProtection: true hasValidityCheck: false hasExtendedMetadata: false base64Supported: false @@ -1467,7 +1467,7 @@ secretType: cloudflare_global_user_api_key isPublic: true isPrivateWithGhas: true - hasPushProtection: false + hasPushProtection: true hasValidityCheck: false hasExtendedMetadata: false base64Supported: false @@ -1477,7 +1477,7 @@ secretType: cloudflare_user_api_token isPublic: true isPrivateWithGhas: true - hasPushProtection: false + hasPushProtection: true hasValidityCheck: false hasExtendedMetadata: false base64Supported: false diff --git a/src/versions/middleware/features.ts b/src/versions/middleware/features.ts index 7467a847d313..5870e701477e 100644 --- a/src/versions/middleware/features.ts +++ b/src/versions/middleware/features.ts @@ -26,8 +26,8 @@ type FeatureVersions = { let allFeatures: Record