diff --git a/.github/actions/cache-nextjs/action.yml b/.github/actions/cache-nextjs/action.yml index 84146741c880..c0251afbaff3 100644 --- a/.github/actions/cache-nextjs/action.yml +++ b/.github/actions/cache-nextjs/action.yml @@ -8,7 +8,7 @@ runs: using: 'composite' steps: - name: Cache .next/cache - uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/.next/cache # Generate a new cache whenever packages or source files change. diff --git a/.github/actions/node-npm-setup/action.yml b/.github/actions/node-npm-setup/action.yml index f1f845d4dad0..fcc88e3d401e 100644 --- a/.github/actions/node-npm-setup/action.yml +++ b/.github/actions/node-npm-setup/action.yml @@ -6,7 +6,7 @@ runs: using: 'composite' steps: - name: Cache node_modules - uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 + uses: actions/cache@v4 id: cache-node_modules env: # Default is 10 min, per segment, but we can make it much smaller diff --git a/.github/actions/precompute-pageinfo/action.yml b/.github/actions/precompute-pageinfo/action.yml index 1886f93c0563..4b9923417a6c 100644 --- a/.github/actions/precompute-pageinfo/action.yml +++ b/.github/actions/precompute-pageinfo/action.yml @@ -17,8 +17,7 @@ runs: # Optionally, you can have it just do A (and not B and C). - name: Cache .pageinfo-cache.json.br (restore) - # You can't use a SHA on these. Only possible with `actions/cache@SHA...` - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: .pageinfo-cache.json.br key: pageinfo-cache- @@ -40,7 +39,7 @@ runs: - name: Cache .remotejson-cache (save) if: ${{ inputs.restore-only == '' }} - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: .pageinfo-cache.json.br key: pageinfo-cache-${{ github.sha }} diff --git a/.github/actions/setup-elasticsearch/action.yml b/.github/actions/setup-elasticsearch/action.yml index 667e1fe6155e..60d3fb07216e 100644 --- a/.github/actions/setup-elasticsearch/action.yml +++ b/.github/actions/setup-elasticsearch/action.yml @@ -19,7 +19,7 @@ runs: # Cache the elasticsearch image to prevent Docker Hub rate limiting - name: Cache Docker layers id: cache-docker-layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/docker-cache key: ${{ runner.os }}-elasticsearch-${{ inputs.elasticsearch_version }} diff --git a/.github/actions/warmup-remotejson-cache/action.yml b/.github/actions/warmup-remotejson-cache/action.yml index 5686fb2a0c94..8d8d9a5e4304 100644 --- a/.github/actions/warmup-remotejson-cache/action.yml +++ b/.github/actions/warmup-remotejson-cache/action.yml @@ -14,8 +14,7 @@ runs: # You "wrap" the step that appends to disk and it will possibly retrieve # some from the cache, then save it when it's got more in it. - name: Cache .remotejson-cache (restore) - # You can't use a SHA on these. Only possible with `actions/cache@SHA...` - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: .remotejson-cache key: remotejson-cache- @@ -37,7 +36,7 @@ runs: - name: Cache .remotejson-cache (save) if: ${{ inputs.restore-only == '' }} - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: .remotejson-cache key: remotejson-cache-${{ github.sha }} diff --git a/.github/workflows/link-check-daily.yml b/.github/workflows/link-check-daily.yml index 818cca1cadae..25ec2ff6b7be 100644 --- a/.github/workflows/link-check-daily.yml +++ b/.github/workflows/link-check-daily.yml @@ -49,7 +49,7 @@ jobs: run: src/early-access/scripts/merge-early-access.sh - name: Restore disk-cache file for external link checking - uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0 + uses: actions/cache@v4 with: path: external-link-checker-db.json key: external-link-checker-${{ hashFiles('src/links/scripts/rendered-content-link-checker.ts') }} diff --git a/.github/workflows/purge-old-deployment-environments.yml b/.github/workflows/purge-old-deployment-environments.yml deleted file mode 100644 index 3feece3b5fd2..000000000000 --- a/.github/workflows/purge-old-deployment-environments.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Purge old deployment environments - -# **What it does**: -# Deletes old deployment environments. A deployment environment exists -# for the sake of a Azure Preview environment. Those Azure Preview environments -# and cleaned up by a separate process. -# **Why we have it**: To keep things neat and tidy. -# **Who does it impact**: Docs engineering. - -on: - workflow_dispatch: - schedule: - - cron: '20 16 * * *' # Run every day at 16:20 UTC / 8:20 PST - -permissions: - contents: write - -jobs: - purge-old-deployment-environments: - if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }} - runs-on: ubuntu-latest - steps: - - name: Checkout out repo - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - uses: ./.github/actions/node-npm-setup - - - name: Run purge script - env: - # Necessary to be able to delete deployment environments - GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_WORKFLOW_READORG }} - run: npm run purge-old-deployment-environments - - - uses: ./.github/actions/slack-alert - if: ${{ failure() && github.event_name != 'workflow_dispatch' }} - with: - slack_channel_id: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }} - slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }} diff --git a/config/moda/deployment.yaml b/config/moda/deployment.yaml index d77c5bb51341..4e6e3bdc1d21 100644 --- a/config/moda/deployment.yaml +++ b/config/moda/deployment.yaml @@ -23,13 +23,9 @@ pipelines: stages: - name: full_production kind: deployment - start_message: We are now going to deploy {{app}}/{{ref}}! Please pause or cancel the pipeline after the deploy if you want more time before auto-merging your pull request(s). config: environment: production timeout: 1200 - # gates: - # - kind: timer - # duration: 1200 notifications: slack_channels: diff --git a/content/admin/configuring-settings/hardening-security-for-your-enterprise/restricting-access-to-githubcom-using-a-corporate-proxy.md b/content/admin/configuring-settings/hardening-security-for-your-enterprise/restricting-access-to-githubcom-using-a-corporate-proxy.md index 7db137771435..b0393098d93b 100644 --- a/content/admin/configuring-settings/hardening-security-for-your-enterprise/restricting-access-to-githubcom-using-a-corporate-proxy.md +++ b/content/admin/configuring-settings/hardening-security-for-your-enterprise/restricting-access-to-githubcom-using-a-corporate-proxy.md @@ -17,10 +17,7 @@ This feature requires an external firewall or proxy. {% data variables.contact.g ## Requesting access -This feature is not enabled by default, and is currently only available to enterprises that pay by invoice. - -* If you pay by invoice, to request access, contact your account manager in {% data variables.product.github %}'s Sales team. -* If you pay via credit card or PayPal, this feature is currently unavailable. +This feature is not enabled by default. To request access, contact your account manager in {% data variables.product.github %}'s Sales team or [sign up here](https://github.com/features/preview/enterprise-access-restrictions). ## Prerequisites @@ -30,7 +27,7 @@ This feature is not enabled by default, and is currently only available to enter * To enforce the restriction, all traffic must flow through a proxy or firewall. The proxy or firewall must: * Be capable of intercepting and editing traffic, commonly called a "break and inspect" proxy * Support arbitrary header injection -* Your account team at {% data variables.product.company_short %} must have granted you access to this feature. +* {% data variables.product.company_short %} must have granted you access to this feature. ## Finding the header diff --git a/content/admin/copilot-business-only/setting-up-a-dedicated-enterprise-for-copilot-business-managed-users.md b/content/admin/copilot-business-only/setting-up-a-dedicated-enterprise-for-copilot-business-managed-users.md index c373d77e35cd..5254c1afd3fb 100644 --- a/content/admin/copilot-business-only/setting-up-a-dedicated-enterprise-for-copilot-business-managed-users.md +++ b/content/admin/copilot-business-only/setting-up-a-dedicated-enterprise-for-copilot-business-managed-users.md @@ -53,9 +53,9 @@ After you configure authentication and provisioning with your IdP, grant one or You can also grant the billing manager role. A billing manager can view the assigned licenses for an enterprise, but cannot assign licenses or manage enterprise teams. -## Linking an Azure subscription +## Adding a payment method -{% data reusables.copilot-business-for-non-ghe.link-azure-subscription %} +{% data reusables.copilot-business-for-non-ghe.add-payment-method %} ## Enabling {% data variables.product.prodname_copilot_short %} for the enterprise diff --git a/content/admin/copilot-business-only/setting-up-a-dedicated-enterprise-for-copilot-business-personal-accounts.md b/content/admin/copilot-business-only/setting-up-a-dedicated-enterprise-for-copilot-business-personal-accounts.md index 016849447c67..4dcc17547b5a 100644 --- a/content/admin/copilot-business-only/setting-up-a-dedicated-enterprise-for-copilot-business-personal-accounts.md +++ b/content/admin/copilot-business-only/setting-up-a-dedicated-enterprise-for-copilot-business-personal-accounts.md @@ -44,9 +44,9 @@ You can also invite a user as a billing manager. A billing manager can view the You can configure SAML single sign-on to require users to authenticate to an external identity management system in addition to their personal account. See [AUTOTITLE](/admin/identity-and-access-management/using-saml-for-enterprise-iam/configuring-saml-single-sign-on-for-your-enterprise). -## Linking an Azure subscription +## Adding a payment method -{% data reusables.copilot-business-for-non-ghe.link-azure-subscription %} +{% data reusables.copilot-business-for-non-ghe.add-payment-method %} ## Enabling {% data variables.product.prodname_copilot_short %} for the enterprise diff --git a/content/rest/index.md b/content/rest/index.md index 39cfab744fb2..9987a9f92c42 100644 --- a/content/rest/index.md +++ b/content/rest/index.md @@ -86,7 +86,6 @@ children: - /search - /secret-scanning - /security-advisories - - /settings - /teams - /users autogenerated: rest diff --git a/content/rest/orgs/index.md b/content/rest/orgs/index.md index 0e0f530f8481..c88beb3554cc 100644 --- a/content/rest/orgs/index.md +++ b/content/rest/orgs/index.md @@ -21,6 +21,7 @@ children: - /custom-properties - /custom-roles - /members + - /network-configurations - /organization-roles - /orgs - /outside-collaborators diff --git a/content/rest/settings/network-configurations.md b/content/rest/orgs/network-configurations.md similarity index 71% rename from content/rest/settings/network-configurations.md rename to content/rest/orgs/network-configurations.md index a5f20f96a76a..c951ac9b5c0b 100644 --- a/content/rest/settings/network-configurations.md +++ b/content/rest/orgs/network-configurations.md @@ -1,12 +1,15 @@ --- title: REST API endpoints for network configurations shortTitle: Network configurations -intro: Use the REST API to interact with network configurations. +intro: REST API endpoints for network configurations versions: # DO NOT MANUALLY EDIT. CHANGES WILL BE OVERWRITTEN BY A 🤖 fpt: '*' ghec: '*' topics: - API +redirect_from: + - /rest/settings/network-configurations + - /rest/settings autogenerated: rest allowTitleToDifferFromFilename: true --- diff --git a/content/rest/settings/index.md b/content/rest/settings/index.md deleted file mode 100644 index 6af2c1cf2ae0..000000000000 --- a/content/rest/settings/index.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -title: settings -topics: - - API -autogenerated: rest -allowTitleToDifferFromFilename: true -children: - - /network-configurations -versions: - fpt: '*' - ghec: '*' ---- - diff --git a/data/reusables/copilot-business-for-non-ghe/link-azure-subscription.md b/data/reusables/copilot-business-for-non-ghe/add-payment-method.md similarity index 52% rename from data/reusables/copilot-business-for-non-ghe/link-azure-subscription.md rename to data/reusables/copilot-business-for-non-ghe/add-payment-method.md index 80e5f686e813..fb94c1059b0e 100644 --- a/data/reusables/copilot-business-for-non-ghe/link-azure-subscription.md +++ b/data/reusables/copilot-business-for-non-ghe/add-payment-method.md @@ -1,4 +1,12 @@ -To pay for licenses, you must connect your enterprise to an Azure subscription. For instructions, read the following sections in the "Connecting an Azure subscription" article: +You must add the payment method that you agreed with {% data variables.product.github %} Sales when you requested the enterprise account. + +### Adding a credit card + +To add a credit card, go to your enterprise's "Payment information" page. See [AUTOTITLE](/billing/using-the-new-billing-platform/managing-your-payment-and-billing-information#viewing-payment-information). + +### Adding an Azure subscription + +For instructions, read the following sections in the "Connecting an Azure subscription" article: * [Prerequisites](/billing/managing-the-plan-for-your-github-account/connecting-an-azure-subscription#prerequisites) * [Connecting your Azure subscription to an enterprise account](/billing/managing-the-plan-for-your-github-account/connecting-an-azure-subscription#connecting-your-azure-subscription-to-your-enterprise-account) diff --git a/data/reusables/copilot-business-for-non-ghe/prerequisites.md b/data/reusables/copilot-business-for-non-ghe/prerequisites.md index f02e3f704e57..3057f4fa02a6 100644 --- a/data/reusables/copilot-business-for-non-ghe/prerequisites.md +++ b/data/reusables/copilot-business-for-non-ghe/prerequisites.md @@ -1,2 +1,2 @@ -* To pay for licenses, you will need a **Microsoft Azure subscription**, which you will connect to your enterprise account. +* To pay for licenses, you will need to add either a **credit card** or a **Microsoft Azure subscription** to your enterprise account. You will agree a payment method with {% data variables.product.github %} Sales when you request the enterprise account. * Before you enable {% data variables.product.prodname_copilot_short %}, ensure you have reviewed the [{% data variables.product.prodname_copilot %} Product Specific Terms](https://github.com/customer-terms/github-copilot-product-specific-terms). diff --git a/data/variables/product.yml b/data/variables/product.yml index 6794d033db87..081004c119bb 100644 --- a/data/variables/product.yml +++ b/data/variables/product.yml @@ -97,7 +97,7 @@ prodname_codeql_cli: 'CodeQL CLI' # CodeQL usually bumps its minor version for each minor version of GHES. # Update this whenever a new enterprise version of CodeQL is being prepared. codeql_cli_ghes_recommended_version: >- - {% ifversion ghes < 3.11 %}2.13.5{% elsif ghes < 3.12 %}2.14.6{% elsif ghes < 3.16 %}2.20.2{% endif %} + {% ifversion ghes < 3.11 %}2.13.5{% elsif ghes < 3.12 %}2.14.6{% elsif ghes < 3.16 %}2.20.3{% endif %} # Projects v2 prodname_projects_v2: 'Projects' diff --git a/package-lock.json b/package-lock.json index f8670a83d210..c894cd310f8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -157,7 +157,7 @@ "micromark-extension-gfm-table": "^2.0.0", "mkdirp": "^3.0.0", "mockdate": "^3.0.5", - "nock": "^13.5.4", + "nock": "^14.0.0", "nodemon": "3.1.3", "npm-merge-driver-install": "^3.0.0", "nth-check": "2.1.1", @@ -2270,6 +2270,24 @@ "resolved": "https://registry.npmjs.org/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.0.tgz", "integrity": "sha512-yWJKmpGE6lUURKAaIltoPIE/wrbY3TEkqQt+X0m+7fQNnAv0keydnYvbiJFP1PnMhizmIWRWOG5KLhYyc/xl+g==" }, + "node_modules/@mswjs/interceptors": { + "version": "0.37.5", + "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.37.5.tgz", + "integrity": "sha512-AAwRb5vXFcY4L+FvZ7LZusDuZ0vEe0Zm8ohn1FM6/X7A3bj4mqmkAcGRWuvC2JwSygNwHAAmMnAI73vPHeqsHA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@open-draft/deferred-promise": "^2.2.0", + "@open-draft/logger": "^0.3.0", + "@open-draft/until": "^2.0.0", + "is-node-process": "^1.2.0", + "outvariant": "^1.4.3", + "strict-event-emitter": "^0.5.1" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/@next/env": { "version": "15.1.5", "resolved": "https://registry.npmjs.org/@next/env/-/env-15.1.5.tgz", @@ -2616,6 +2634,31 @@ "resolved": "https://registry.npmjs.org/@oddbird/popover-polyfill/-/popover-polyfill-0.4.3.tgz", "integrity": "sha512-kBS0ZAwH8kZqFl0mV89KPK4cLYl2ZoKSfYngK4dz1eLAhKzTK0yu4LrvLdMeM7JhjWK6GxBtiY+cl1s6vR2pUg==" }, + "node_modules/@open-draft/deferred-promise": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@open-draft/deferred-promise/-/deferred-promise-2.2.0.tgz", + "integrity": "sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@open-draft/logger": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@open-draft/logger/-/logger-0.3.0.tgz", + "integrity": "sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-node-process": "^1.2.0", + "outvariant": "^1.4.0" + } + }, + "node_modules/@open-draft/until": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@open-draft/until/-/until-2.1.0.tgz", + "integrity": "sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==", + "dev": true, + "license": "MIT" + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -8853,6 +8896,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-node-process": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-node-process/-/is-node-process-1.2.0.tgz", + "integrity": "sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==", + "dev": true, + "license": "MIT" + }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -11586,17 +11636,18 @@ } }, "node_modules/nock": { - "version": "13.5.4", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.5.4.tgz", - "integrity": "sha512-yAyTfdeNJGGBFxWdzSKCBYxs5FxLbCg5X5Q4ets974hcQzG1+qCxvIyOo4j2Ry6MUlhWVMX4OoYDefAIIwupjw==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.0.tgz", + "integrity": "sha512-3Z2ZoZoYTR/y2I+NI16+6IzfZFKBX7MrADtoBAm7v/QKqxQUhKw+Dh+847PPS1j/FDutjfIXfrh3CJF74yITWg==", "dev": true, + "license": "MIT", "dependencies": { - "debug": "^4.1.0", + "@mswjs/interceptors": "^0.37.3", "json-stringify-safe": "^5.0.1", "propagate": "^2.0.0" }, "engines": { - "node": ">= 10.13" + "node": ">= 18" } }, "node_modules/node-releases": { @@ -11939,6 +11990,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/outvariant": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.4.3.tgz", + "integrity": "sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==", + "dev": true, + "license": "MIT" + }, "node_modules/p-cancelable": { "version": "3.0.0", "dev": true, @@ -14213,6 +14271,13 @@ "node": ">=10.0.0" } }, + "node_modules/strict-event-emitter": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/strict-event-emitter/-/strict-event-emitter-0.5.1.tgz", + "integrity": "sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==", + "dev": true, + "license": "MIT" + }, "node_modules/string-argv": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz", diff --git a/package.json b/package.json index be6e6ba2a1fa..b7132a147261 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,6 @@ "prevent-pushes-to-main": "tsx src/workflows/prevent-pushes-to-main.ts", "purge-fastly-edge-cache": "tsx src/workflows/purge-fastly-edge-cache.ts", "purge-fastly-edge-cache-per-language": "tsx src/languages/scripts/purge-fastly-edge-cache-per-language.js", - "purge-old-deployment-environments": "tsx src/workflows/purge-old-deployment-environments.ts", "purge-old-workflow-runs": "tsx src/workflows/purge-old-workflow-runs.js", "ready-for-docs-review": "tsx src/workflows/ready-for-docs-review.ts", "release-banner": "tsx src/ghes-releases/scripts/release-banner.js", @@ -393,7 +392,7 @@ "micromark-extension-gfm-table": "^2.0.0", "mkdirp": "^3.0.0", "mockdate": "^3.0.5", - "nock": "^13.5.4", + "nock": "^14.0.0", "nodemon": "3.1.3", "npm-merge-driver-install": "^3.0.0", "nth-check": "2.1.1", diff --git a/src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json b/src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json index 4ee3c190c7e0..b186d76f248c 100644 --- a/src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json +++ b/src/github-apps/data/fpt-2022-11-28/fine-grained-pat-permissions.json @@ -1249,7 +1249,7 @@ "displayTitle": "Organization permissions for \"Network configurations\"", "permissions": [ { - "category": "settings", + "category": "orgs", "slug": "list-hosted-compute-network-configurations-for-an-organization", "subcategory": "network-configurations", "verb": "get", @@ -1258,7 +1258,7 @@ "access": "read" }, { - "category": "settings", + "category": "orgs", "slug": "create-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "post", @@ -1267,7 +1267,7 @@ "access": "write" }, { - "category": "settings", + "category": "orgs", "slug": "get-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "get", @@ -1276,7 +1276,7 @@ "access": "read" }, { - "category": "settings", + "category": "orgs", "slug": "update-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "patch", @@ -1285,7 +1285,7 @@ "access": "write" }, { - "category": "settings", + "category": "orgs", "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", "subcategory": "network-configurations", "verb": "delete", @@ -1294,7 +1294,7 @@ "access": "write" }, { - "category": "settings", + "category": "orgs", "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", "subcategory": "network-configurations", "verb": "get", diff --git a/src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json b/src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json index 8447cfed50a1..db9b4172317c 100644 --- a/src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json +++ b/src/github-apps/data/fpt-2022-11-28/fine-grained-pat.json @@ -3664,6 +3664,42 @@ "verb": "delete", "requestPath": "/orgs/{org}/security-managers/teams/{team_slug}" }, + { + "slug": "list-hosted-compute-network-configurations-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "create-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "post", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "get-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "update-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "patch", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", + "subcategory": "network-configurations", + "verb": "delete", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" + }, { "slug": "enable-or-disable-a-security-feature-for-an-organization", "subcategory": "orgs", @@ -4967,44 +5003,6 @@ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks" } ], - "settings": [ - { - "slug": "list-hosted-compute-network-configurations-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "create-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "post", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "get-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "update-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "patch", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", - "subcategory": "network-configurations", - "verb": "delete", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" - } - ], "teams": [ { "slug": "list-teams", diff --git a/src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json b/src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json index 452cf917a98e..0be02df8d97e 100644 --- a/src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json +++ b/src/github-apps/data/fpt-2022-11-28/server-to-server-permissions.json @@ -1515,7 +1515,7 @@ "displayTitle": "Organization permissions for \"Network configurations\"", "permissions": [ { - "category": "settings", + "category": "orgs", "slug": "list-hosted-compute-network-configurations-for-an-organization", "subcategory": "network-configurations", "verb": "get", @@ -1526,7 +1526,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "create-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "post", @@ -1537,7 +1537,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "get-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "get", @@ -1548,7 +1548,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "update-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "patch", @@ -1559,7 +1559,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", "subcategory": "network-configurations", "verb": "delete", @@ -1570,7 +1570,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", "subcategory": "network-configurations", "verb": "get", diff --git a/src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json b/src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json index b16a71da8365..9b3e0dc46ee6 100644 --- a/src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json +++ b/src/github-apps/data/fpt-2022-11-28/server-to-server-rest.json @@ -3172,6 +3172,42 @@ "verb": "delete", "requestPath": "/orgs/{org}/security-managers/teams/{team_slug}" }, + { + "slug": "list-hosted-compute-network-configurations-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "create-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "post", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "get-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "update-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "patch", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", + "subcategory": "network-configurations", + "verb": "delete", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" + }, { "slug": "enable-or-disable-a-security-feature-for-an-organization", "subcategory": "orgs", @@ -4475,44 +4511,6 @@ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks" } ], - "settings": [ - { - "slug": "list-hosted-compute-network-configurations-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "create-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "post", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "get-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "update-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "patch", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", - "subcategory": "network-configurations", - "verb": "delete", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" - } - ], "teams": [ { "slug": "list-teams", diff --git a/src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json b/src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json index 8447cfed50a1..db9b4172317c 100644 --- a/src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json +++ b/src/github-apps/data/fpt-2022-11-28/user-to-server-rest.json @@ -3664,6 +3664,42 @@ "verb": "delete", "requestPath": "/orgs/{org}/security-managers/teams/{team_slug}" }, + { + "slug": "list-hosted-compute-network-configurations-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "create-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "post", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "get-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "update-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "patch", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", + "subcategory": "network-configurations", + "verb": "delete", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" + }, { "slug": "enable-or-disable-a-security-feature-for-an-organization", "subcategory": "orgs", @@ -4967,44 +5003,6 @@ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks" } ], - "settings": [ - { - "slug": "list-hosted-compute-network-configurations-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "create-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "post", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "get-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "update-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "patch", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", - "subcategory": "network-configurations", - "verb": "delete", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" - } - ], "teams": [ { "slug": "list-teams", diff --git a/src/github-apps/data/ghec-2022-11-28/fine-grained-pat-permissions.json b/src/github-apps/data/ghec-2022-11-28/fine-grained-pat-permissions.json index d028cd78bdce..92456dd12f76 100644 --- a/src/github-apps/data/ghec-2022-11-28/fine-grained-pat-permissions.json +++ b/src/github-apps/data/ghec-2022-11-28/fine-grained-pat-permissions.json @@ -1666,7 +1666,7 @@ "displayTitle": "Organization permissions for \"Network configurations\"", "permissions": [ { - "category": "settings", + "category": "orgs", "slug": "list-hosted-compute-network-configurations-for-an-organization", "subcategory": "network-configurations", "verb": "get", @@ -1675,7 +1675,7 @@ "access": "read" }, { - "category": "settings", + "category": "orgs", "slug": "create-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "post", @@ -1684,7 +1684,7 @@ "access": "write" }, { - "category": "settings", + "category": "orgs", "slug": "get-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "get", @@ -1693,7 +1693,7 @@ "access": "read" }, { - "category": "settings", + "category": "orgs", "slug": "update-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "patch", @@ -1702,7 +1702,7 @@ "access": "write" }, { - "category": "settings", + "category": "orgs", "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", "subcategory": "network-configurations", "verb": "delete", @@ -1711,7 +1711,7 @@ "access": "write" }, { - "category": "settings", + "category": "orgs", "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", "subcategory": "network-configurations", "verb": "get", diff --git a/src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json b/src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json index 5ec44ce641ae..a66b9b84587c 100644 --- a/src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json +++ b/src/github-apps/data/ghec-2022-11-28/fine-grained-pat.json @@ -3998,6 +3998,42 @@ "verb": "delete", "requestPath": "/orgs/{org}/security-managers/teams/{team_slug}" }, + { + "slug": "list-hosted-compute-network-configurations-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "create-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "post", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "get-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "update-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "patch", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", + "subcategory": "network-configurations", + "verb": "delete", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" + }, { "slug": "enable-or-disable-a-security-feature-for-an-organization", "subcategory": "orgs", @@ -5351,44 +5387,6 @@ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks" } ], - "settings": [ - { - "slug": "list-hosted-compute-network-configurations-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "create-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "post", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "get-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "update-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "patch", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", - "subcategory": "network-configurations", - "verb": "delete", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" - } - ], "teams": [ { "slug": "get-an-external-group", diff --git a/src/github-apps/data/ghec-2022-11-28/server-to-server-permissions.json b/src/github-apps/data/ghec-2022-11-28/server-to-server-permissions.json index 4032443a0abb..13913c5341a3 100644 --- a/src/github-apps/data/ghec-2022-11-28/server-to-server-permissions.json +++ b/src/github-apps/data/ghec-2022-11-28/server-to-server-permissions.json @@ -2022,7 +2022,7 @@ "displayTitle": "Organization permissions for \"Network configurations\"", "permissions": [ { - "category": "settings", + "category": "orgs", "slug": "list-hosted-compute-network-configurations-for-an-organization", "subcategory": "network-configurations", "verb": "get", @@ -2033,7 +2033,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "create-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "post", @@ -2044,7 +2044,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "get-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "get", @@ -2055,7 +2055,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "update-a-hosted-compute-network-configuration-for-an-organization", "subcategory": "network-configurations", "verb": "patch", @@ -2066,7 +2066,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", "subcategory": "network-configurations", "verb": "delete", @@ -2077,7 +2077,7 @@ "additional-permissions": false }, { - "category": "settings", + "category": "orgs", "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", "subcategory": "network-configurations", "verb": "get", diff --git a/src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json b/src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json index 22501e8af1f2..cdcaa0ba2c06 100644 --- a/src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json +++ b/src/github-apps/data/ghec-2022-11-28/server-to-server-rest.json @@ -3506,6 +3506,42 @@ "verb": "delete", "requestPath": "/orgs/{org}/security-managers/teams/{team_slug}" }, + { + "slug": "list-hosted-compute-network-configurations-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "create-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "post", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "get-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "update-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "patch", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", + "subcategory": "network-configurations", + "verb": "delete", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" + }, { "slug": "enable-or-disable-a-security-feature-for-an-organization", "subcategory": "orgs", @@ -4859,44 +4895,6 @@ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks" } ], - "settings": [ - { - "slug": "list-hosted-compute-network-configurations-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "create-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "post", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "get-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "update-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "patch", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", - "subcategory": "network-configurations", - "verb": "delete", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" - } - ], "teams": [ { "slug": "get-an-external-group", diff --git a/src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json b/src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json index 5ec44ce641ae..a66b9b84587c 100644 --- a/src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json +++ b/src/github-apps/data/ghec-2022-11-28/user-to-server-rest.json @@ -3998,6 +3998,42 @@ "verb": "delete", "requestPath": "/orgs/{org}/security-managers/teams/{team_slug}" }, + { + "slug": "list-hosted-compute-network-configurations-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "create-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "post", + "requestPath": "/orgs/{org}/settings/network-configurations" + }, + { + "slug": "get-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "update-a-hosted-compute-network-configuration-for-an-organization", + "subcategory": "network-configurations", + "verb": "patch", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", + "subcategory": "network-configurations", + "verb": "delete", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" + }, + { + "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", + "subcategory": "network-configurations", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" + }, { "slug": "enable-or-disable-a-security-feature-for-an-organization", "subcategory": "orgs", @@ -5351,44 +5387,6 @@ "requestPath": "/repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks" } ], - "settings": [ - { - "slug": "list-hosted-compute-network-configurations-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "create-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "post", - "requestPath": "/orgs/{org}/settings/network-configurations" - }, - { - "slug": "get-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "update-a-hosted-compute-network-configuration-for-an-organization", - "subcategory": "network-configurations", - "verb": "patch", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "delete-a-hosted-compute-network-configuration-from-an-organization", - "subcategory": "network-configurations", - "verb": "delete", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}" - }, - { - "slug": "get-a-hosted-compute-network-settings-resource-for-an-organization", - "subcategory": "network-configurations", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}" - } - ], "teams": [ { "slug": "get-an-external-group", diff --git a/src/github-apps/lib/config.json b/src/github-apps/lib/config.json index b0edf2f3c642..a33583151b94 100644 --- a/src/github-apps/lib/config.json +++ b/src/github-apps/lib/config.json @@ -60,5 +60,5 @@ "2022-11-28" ] }, - "sha": "7509e549b11bd1aeebf531fc527c542a70cf944b" + "sha": "795897c437bded214ee22f511306cce3f387ca05" } \ No newline at end of file diff --git a/src/rest/data/fpt-2022-11-28/schema.json b/src/rest/data/fpt-2022-11-28/schema.json index 1883890c1a31..dcd44bad92c2 100644 --- a/src/rest/data/fpt-2022-11-28/schema.json +++ b/src/rest/data/fpt-2022-11-28/schema.json @@ -235341,7 +235341,7 @@ "object", "null" ], - "description": "Usage metrics for Copilot Chat in github.com", + "description": "Usage metrics for Copilot Chat in GitHub.com", "additionalProperties": true, "properties": { "total_engaged_users": { @@ -235933,7 +235933,7 @@ "object", "null" ], - "description": "Usage metrics for Copilot Chat in github.com", + "description": "Usage metrics for Copilot Chat in GitHub.com", "additionalProperties": true, "properties": { "total_engaged_users": { @@ -239071,6 +239071,12 @@ "score": 8.7 } }, + "epss": [ + { + "percentage": 0.00045, + "percentile": "0.16001e0" + } + ], "cwes": [ { "cwe_id": "CWE-200", @@ -239679,6 +239685,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -240947,6 +240973,12 @@ "score": 8.7 } }, + "epss": [ + { + "percentage": 0.00045, + "percentile": "0.16001e0" + } + ], "cwes": [ { "cwe_id": "CWE-200", @@ -241555,6 +241587,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -242856,6 +242908,12 @@ "score": 8.7 } }, + "epss": [ + { + "percentage": 0.00045, + "percentile": "0.16001e0" + } + ], "cwes": [ { "cwe_id": "CWE-200", @@ -243330,6 +243388,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -243952,6 +244030,12 @@ "score": 8.5 } }, + "epss": [ + { + "percentage": 0.00045, + "percentile": "0.16001e0" + } + ], "cwes": [ { "cwe_id": "CWE-532", @@ -244280,6 +244364,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -245272,6 +245376,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -394672,6 +394796,808 @@ ] } ], + "network-configurations": [ + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations", + "title": "List hosted compute network configurations for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "
The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"
", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"
", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "read" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "total_count": 2, + "network_configurations": [ + { + "id": "123456789ABCDEF", + "name": "My network configuration", + "compute_service": "actions", + "network_settings_ids": [ + "23456789ABDCEF1", + "3456789ABDCEF12" + ], + "created_on": "2022-10-09T23:39:01Z" + }, + { + "id": "456789ABDCEF123", + "name": "My other configuration", + "compute_service": "none", + "network_settings_ids": [ + "56789ABDCEF1234", + "6789ABDCEF12345" + ], + "created_on": "2023-04-26T15:23:37Z" + } + ] + }, + "schema": { + "type": "object", + "required": [ + "total_count", + "network_configurations" + ], + "properties": { + "total_count": { + "type": "integer" + }, + "network_configurations": { + "type": "array", + "items": { + "title": "Hosted compute network configuration", + "description": "A hosted compute network configuration.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network configuration.", + "type": "string", + "examples": [ + "123ABC456DEF789" + ] + }, + "name": { + "description": "The name of the network configuration.", + "type": "string", + "examples": [ + "my-network-configuration" + ] + }, + "compute_service": { + "description": "The hosted compute service the network configuration supports.", + "type": "string", + "enum": [ + "none", + "actions", + "codespaces" + ] + }, + "network_settings_ids": { + "description": "The unique identifier of each network settings in the configuration.", + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "123ABC456DEF789" + ] + }, + "created_on": { + "description": "The time at which the network configuration was created, in ISO 8601 format.", + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2024-04-26T11:31:07Z" + ] + } + }, + "required": [ + "id", + "name", + "created_on" + ] + } + } + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Lists all hosted compute network configurations configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "post", + "requestPath": "/orgs/{org}/settings/network-configurations", + "title": "Create a hosted compute network configuration for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "string", + "name": "name", + "in": "body", + "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
", + "isRequired": true + }, + { + "type": "string", + "name": "compute_service", + "in": "body", + "description": "The hosted compute service to use for the network configuration.
", + "enum": [ + "none", + "actions" + ] + }, + { + "type": "array of strings", + "name": "network_settings_ids", + "in": "body", + "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
", + "isRequired": true + } + ], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "write" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "contentType": "application/json", + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "bodyParameters": { + "name": "my-network-configuration", + "network_settings_ids": [ + "23456789ABDCEF1" + ], + "compute_service": "actions" + }, + "parameters": { + "org": "ORG" + } + }, + "response": { + "statusCode": "201", + "contentType": "application/json", + "description": "Response
", + "example": { + "id": "123456789ABCDEF", + "name": "My network configuration", + "compute_service": "actions", + "network_settings_ids": [ + "23456789ABDCEF1", + "3456789ABDCEF12" + ], + "created_on": "2022-10-09T23:39:01Z" + }, + "schema": { + "title": "Hosted compute network configuration", + "description": "A hosted compute network configuration.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network configuration.", + "type": "string", + "examples": [ + "123ABC456DEF789" + ] + }, + "name": { + "description": "The name of the network configuration.", + "type": "string", + "examples": [ + "my-network-configuration" + ] + }, + "compute_service": { + "description": "The hosted compute service the network configuration supports.", + "type": "string", + "enum": [ + "none", + "actions", + "codespaces" + ] + }, + "network_settings_ids": { + "description": "The unique identifier of each network settings in the configuration.", + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "123ABC456DEF789" + ] + }, + "created_on": { + "description": "The time at which the network configuration was created, in ISO 8601 format.", + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2024-04-26T11:31:07Z" + ] + } + }, + "required": [ + "id", + "name", + "created_on" + ] + } + } + } + ], + "previews": [], + "descriptionHTML": "Creates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
Created
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", + "title": "Get a hosted compute network configuration for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "network_configuration_id", + "description": "Unique identifier of the hosted compute network configuration.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "read" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG", + "network_configuration_id": "NETWORK_CONFIGURATION_ID" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "id": "123456789ABCDEF", + "name": "My network configuration", + "compute_service": "actions", + "network_settings_ids": [ + "23456789ABDCEF1", + "3456789ABDCEF12" + ], + "created_on": "2022-10-09T23:39:01Z" + }, + "schema": { + "title": "Hosted compute network configuration", + "description": "A hosted compute network configuration.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network configuration.", + "type": "string", + "examples": [ + "123ABC456DEF789" + ] + }, + "name": { + "description": "The name of the network configuration.", + "type": "string", + "examples": [ + "my-network-configuration" + ] + }, + "compute_service": { + "description": "The hosted compute service the network configuration supports.", + "type": "string", + "enum": [ + "none", + "actions", + "codespaces" + ] + }, + "network_settings_ids": { + "description": "The unique identifier of each network settings in the configuration.", + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "123ABC456DEF789" + ] + }, + "created_on": { + "description": "The time at which the network configuration was created, in ISO 8601 format.", + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2024-04-26T11:31:07Z" + ] + } + }, + "required": [ + "id", + "name", + "created_on" + ] + } + } + } + ], + "previews": [], + "descriptionHTML": "Gets a hosted compute network configuration configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "patch", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", + "title": "Update a hosted compute network configuration for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "network_configuration_id", + "description": "Unique identifier of the hosted compute network configuration.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "string", + "name": "name", + "in": "body", + "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
" + }, + { + "type": "string", + "name": "compute_service", + "in": "body", + "description": "The hosted compute service to use for the network configuration.
", + "enum": [ + "none", + "actions" + ] + }, + { + "type": "array of strings", + "name": "network_settings_ids", + "in": "body", + "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
" + } + ], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "write" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "contentType": "application/json", + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "bodyParameters": { + "name": "my-network-configuration", + "network_settings_ids": [ + "23456789ABDCEF1" + ], + "compute_service": "actions" + }, + "parameters": { + "org": "ORG", + "network_configuration_id": "NETWORK_CONFIGURATION_ID" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "id": "123456789ABCDEF", + "name": "My network configuration", + "compute_service": "actions", + "network_settings_ids": [ + "23456789ABDCEF1", + "3456789ABDCEF12" + ], + "created_on": "2022-10-09T23:39:01Z" + }, + "schema": { + "title": "Hosted compute network configuration", + "description": "A hosted compute network configuration.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network configuration.", + "type": "string", + "examples": [ + "123ABC456DEF789" + ] + }, + "name": { + "description": "The name of the network configuration.", + "type": "string", + "examples": [ + "my-network-configuration" + ] + }, + "compute_service": { + "description": "The hosted compute service the network configuration supports.", + "type": "string", + "enum": [ + "none", + "actions", + "codespaces" + ] + }, + "network_settings_ids": { + "description": "The unique identifier of each network settings in the configuration.", + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "123ABC456DEF789" + ] + }, + "created_on": { + "description": "The time at which the network configuration was created, in ISO 8601 format.", + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2024-04-26T11:31:07Z" + ] + } + }, + "required": [ + "id", + "name", + "created_on" + ] + } + } + } + ], + "previews": [], + "descriptionHTML": "Updates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
OK
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "delete", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", + "title": "Delete a hosted compute network configuration from an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "network_configuration_id", + "description": "Unique identifier of the hosted compute network configuration.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "write" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG", + "network_configuration_id": "NETWORK_CONFIGURATION_ID" + } + }, + "response": { + "statusCode": "204", + "description": "Response
" + } + } + ], + "previews": [], + "descriptionHTML": "Deletes a hosted compute network configuration from an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
No Content
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}", + "title": "Get a hosted compute network settings resource for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "network_settings_id", + "description": "Unique identifier of the hosted compute network settings.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "read" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG", + "network_settings_id": "NETWORK_SETTINGS_ID" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "id": "220F78DACB92BBFBC5E6F22DE1CCF52309D", + "network_configuration_id": "934E208B3EE0BD60CF5F752C426BFB53562", + "name": "my_network_settings", + "subnet_id": "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet", + "region": "eastus" + }, + "schema": { + "title": "Hosted compute network settings resource", + "description": "A hosted compute network settings resource.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network settings resource.", + "type": "string", + "examples": [ + "220F78DACB92BBFBC5E6F22DE1CCF52309D" + ] + }, + "network_configuration_id": { + "description": "The identifier of the network configuration that is using this settings resource.", + "type": "string", + "examples": [ + "934E208B3EE0BD60CF5F752C426BFB53562" + ] + }, + "name": { + "description": "The name of the network settings resource.", + "type": "string", + "examples": [ + "my-network-settings" + ] + }, + "subnet_id": { + "description": "The subnet this network settings resource is configured for.", + "type": "string", + "examples": [ + "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet" + ] + }, + "region": { + "description": "The location of the subnet this network settings resource is configured for.", + "type": "string", + "examples": [ + "eastus" + ] + } + }, + "required": [ + "id", + "name", + "subnet_id", + "region" + ] + } + } + } + ], + "previews": [], + "descriptionHTML": "Gets a hosted compute network settings resource configured for an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" + } + ] + } + ], "organization-roles": [ { "serverUrl": "https://api.github.com", @@ -559978,6 +560904,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -560002,20 +560948,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -560727,6 +561659,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -560751,20 +561703,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -582514,810 +583452,6 @@ } ] }, - "settings": { - "network-configurations": [ - { - "serverUrl": "https://api.github.com", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations", - "title": "List hosted compute network configurations for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"
", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"
", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "bodyParameters": [], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "read" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "parameters": { - "org": "ORG" - } - }, - "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": { - "total_count": 2, - "network_configurations": [ - { - "id": "123456789ABCDEF", - "name": "My network configuration", - "compute_service": "actions", - "network_settings_ids": [ - "23456789ABDCEF1", - "3456789ABDCEF12" - ], - "created_on": "2022-10-09T23:39:01Z" - }, - { - "id": "456789ABDCEF123", - "name": "My other configuration", - "compute_service": "none", - "network_settings_ids": [ - "56789ABDCEF1234", - "6789ABDCEF12345" - ], - "created_on": "2023-04-26T15:23:37Z" - } - ] - }, - "schema": { - "type": "object", - "required": [ - "total_count", - "network_configurations" - ], - "properties": { - "total_count": { - "type": "integer" - }, - "network_configurations": { - "type": "array", - "items": { - "title": "Hosted compute network configuration", - "description": "A hosted compute network configuration.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network configuration.", - "type": "string", - "examples": [ - "123ABC456DEF789" - ] - }, - "name": { - "description": "The name of the network configuration.", - "type": "string", - "examples": [ - "my-network-configuration" - ] - }, - "compute_service": { - "description": "The hosted compute service the network configuration supports.", - "type": "string", - "enum": [ - "none", - "actions", - "codespaces" - ] - }, - "network_settings_ids": { - "description": "The unique identifier of each network settings in the configuration.", - "type": "array", - "items": { - "type": "string" - }, - "examples": [ - "123ABC456DEF789" - ] - }, - "created_on": { - "description": "The time at which the network configuration was created, in ISO 8601 format.", - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2024-04-26T11:31:07Z" - ] - } - }, - "required": [ - "id", - "name", - "created_on" - ] - } - } - } - } - } - } - ], - "previews": [], - "descriptionHTML": "Lists all hosted compute network configurations configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "post", - "requestPath": "/orgs/{org}/settings/network-configurations", - "title": "Create a hosted compute network configuration for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [ - { - "type": "string", - "name": "name", - "in": "body", - "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
", - "isRequired": true - }, - { - "type": "string", - "name": "compute_service", - "in": "body", - "description": "The hosted compute service to use for the network configuration.
", - "enum": [ - "none", - "actions" - ] - }, - { - "type": "array of strings", - "name": "network_settings_ids", - "in": "body", - "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
", - "isRequired": true - } - ], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "write" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "contentType": "application/json", - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "bodyParameters": { - "name": "my-network-configuration", - "network_settings_ids": [ - "23456789ABDCEF1" - ], - "compute_service": "actions" - }, - "parameters": { - "org": "ORG" - } - }, - "response": { - "statusCode": "201", - "contentType": "application/json", - "description": "Response
", - "example": { - "id": "123456789ABCDEF", - "name": "My network configuration", - "compute_service": "actions", - "network_settings_ids": [ - "23456789ABDCEF1", - "3456789ABDCEF12" - ], - "created_on": "2022-10-09T23:39:01Z" - }, - "schema": { - "title": "Hosted compute network configuration", - "description": "A hosted compute network configuration.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network configuration.", - "type": "string", - "examples": [ - "123ABC456DEF789" - ] - }, - "name": { - "description": "The name of the network configuration.", - "type": "string", - "examples": [ - "my-network-configuration" - ] - }, - "compute_service": { - "description": "The hosted compute service the network configuration supports.", - "type": "string", - "enum": [ - "none", - "actions", - "codespaces" - ] - }, - "network_settings_ids": { - "description": "The unique identifier of each network settings in the configuration.", - "type": "array", - "items": { - "type": "string" - }, - "examples": [ - "123ABC456DEF789" - ] - }, - "created_on": { - "description": "The time at which the network configuration was created, in ISO 8601 format.", - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2024-04-26T11:31:07Z" - ] - } - }, - "required": [ - "id", - "name", - "created_on" - ] - } - } - } - ], - "previews": [], - "descriptionHTML": "Creates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
Created
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", - "title": "Get a hosted compute network configuration for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "network_configuration_id", - "description": "Unique identifier of the hosted compute network configuration.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "read" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "parameters": { - "org": "ORG", - "network_configuration_id": "NETWORK_CONFIGURATION_ID" - } - }, - "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": { - "id": "123456789ABCDEF", - "name": "My network configuration", - "compute_service": "actions", - "network_settings_ids": [ - "23456789ABDCEF1", - "3456789ABDCEF12" - ], - "created_on": "2022-10-09T23:39:01Z" - }, - "schema": { - "title": "Hosted compute network configuration", - "description": "A hosted compute network configuration.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network configuration.", - "type": "string", - "examples": [ - "123ABC456DEF789" - ] - }, - "name": { - "description": "The name of the network configuration.", - "type": "string", - "examples": [ - "my-network-configuration" - ] - }, - "compute_service": { - "description": "The hosted compute service the network configuration supports.", - "type": "string", - "enum": [ - "none", - "actions", - "codespaces" - ] - }, - "network_settings_ids": { - "description": "The unique identifier of each network settings in the configuration.", - "type": "array", - "items": { - "type": "string" - }, - "examples": [ - "123ABC456DEF789" - ] - }, - "created_on": { - "description": "The time at which the network configuration was created, in ISO 8601 format.", - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2024-04-26T11:31:07Z" - ] - } - }, - "required": [ - "id", - "name", - "created_on" - ] - } - } - } - ], - "previews": [], - "descriptionHTML": "Gets a hosted compute network configuration configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "patch", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", - "title": "Update a hosted compute network configuration for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "network_configuration_id", - "description": "Unique identifier of the hosted compute network configuration.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [ - { - "type": "string", - "name": "name", - "in": "body", - "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
" - }, - { - "type": "string", - "name": "compute_service", - "in": "body", - "description": "The hosted compute service to use for the network configuration.
", - "enum": [ - "none", - "actions" - ] - }, - { - "type": "array of strings", - "name": "network_settings_ids", - "in": "body", - "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
" - } - ], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "write" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "contentType": "application/json", - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "bodyParameters": { - "name": "my-network-configuration", - "network_settings_ids": [ - "23456789ABDCEF1" - ], - "compute_service": "actions" - }, - "parameters": { - "org": "ORG", - "network_configuration_id": "NETWORK_CONFIGURATION_ID" - } - }, - "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": { - "id": "123456789ABCDEF", - "name": "My network configuration", - "compute_service": "actions", - "network_settings_ids": [ - "23456789ABDCEF1", - "3456789ABDCEF12" - ], - "created_on": "2022-10-09T23:39:01Z" - }, - "schema": { - "title": "Hosted compute network configuration", - "description": "A hosted compute network configuration.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network configuration.", - "type": "string", - "examples": [ - "123ABC456DEF789" - ] - }, - "name": { - "description": "The name of the network configuration.", - "type": "string", - "examples": [ - "my-network-configuration" - ] - }, - "compute_service": { - "description": "The hosted compute service the network configuration supports.", - "type": "string", - "enum": [ - "none", - "actions", - "codespaces" - ] - }, - "network_settings_ids": { - "description": "The unique identifier of each network settings in the configuration.", - "type": "array", - "items": { - "type": "string" - }, - "examples": [ - "123ABC456DEF789" - ] - }, - "created_on": { - "description": "The time at which the network configuration was created, in ISO 8601 format.", - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2024-04-26T11:31:07Z" - ] - } - }, - "required": [ - "id", - "name", - "created_on" - ] - } - } - } - ], - "previews": [], - "descriptionHTML": "Updates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
OK
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "delete", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", - "title": "Delete a hosted compute network configuration from an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "network_configuration_id", - "description": "Unique identifier of the hosted compute network configuration.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "write" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "parameters": { - "org": "ORG", - "network_configuration_id": "NETWORK_CONFIGURATION_ID" - } - }, - "response": { - "statusCode": "204", - "description": "Response
" - } - } - ], - "previews": [], - "descriptionHTML": "Deletes a hosted compute network configuration from an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
No Content
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}", - "title": "Get a hosted compute network settings resource for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "network_settings_id", - "description": "Unique identifier of the hosted compute network settings.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "read" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "parameters": { - "org": "ORG", - "network_settings_id": "NETWORK_SETTINGS_ID" - } - }, - "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": { - "id": "220F78DACB92BBFBC5E6F22DE1CCF52309D", - "network_configuration_id": "934E208B3EE0BD60CF5F752C426BFB53562", - "name": "my_network_settings", - "subnet_id": "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet", - "region": "eastus" - }, - "schema": { - "title": "Hosted compute network settings resource", - "description": "A hosted compute network settings resource.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network settings resource.", - "type": "string", - "examples": [ - "220F78DACB92BBFBC5E6F22DE1CCF52309D" - ] - }, - "network_configuration_id": { - "description": "The identifier of the network configuration that is using this settings resource.", - "type": "string", - "examples": [ - "934E208B3EE0BD60CF5F752C426BFB53562" - ] - }, - "name": { - "description": "The name of the network settings resource.", - "type": "string", - "examples": [ - "my-network-settings" - ] - }, - "subnet_id": { - "description": "The subnet this network settings resource is configured for.", - "type": "string", - "examples": [ - "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet" - ] - }, - "region": { - "description": "The location of the subnet this network settings resource is configured for.", - "type": "string", - "examples": [ - "eastus" - ] - } - }, - "required": [ - "id", - "name", - "subnet_id", - "region" - ] - } - } - } - ], - "previews": [], - "descriptionHTML": "Gets a hosted compute network settings resource configured for an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" - } - ] - } - ] - }, "teams": { "teams": [ { diff --git a/src/rest/data/ghec-2022-11-28/schema.json b/src/rest/data/ghec-2022-11-28/schema.json index 0910c5cab9a1..cc095ca85a04 100644 --- a/src/rest/data/ghec-2022-11-28/schema.json +++ b/src/rest/data/ghec-2022-11-28/schema.json @@ -246519,7 +246519,7 @@ "object", "null" ], - "description": "Usage metrics for Copilot Chat in github.com", + "description": "Usage metrics for Copilot Chat in GitHub.com", "additionalProperties": true, "properties": { "total_engaged_users": { @@ -247104,7 +247104,7 @@ "object", "null" ], - "description": "Usage metrics for Copilot Chat in github.com", + "description": "Usage metrics for Copilot Chat in GitHub.com", "additionalProperties": true, "properties": { "total_engaged_users": { @@ -247686,7 +247686,7 @@ "object", "null" ], - "description": "Usage metrics for Copilot Chat in github.com", + "description": "Usage metrics for Copilot Chat in GitHub.com", "additionalProperties": true, "properties": { "total_engaged_users": { @@ -248278,7 +248278,7 @@ "object", "null" ], - "description": "Usage metrics for Copilot Chat in github.com", + "description": "Usage metrics for Copilot Chat in GitHub.com", "additionalProperties": true, "properties": { "total_engaged_users": { @@ -252778,6 +252778,12 @@ "score": 8.7 } }, + "epss": [ + { + "percentage": 0.00045, + "percentile": "0.16001e0" + } + ], "cwes": [ { "cwe_id": "CWE-200", @@ -253386,6 +253392,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -254654,6 +254680,12 @@ "score": 8.7 } }, + "epss": [ + { + "percentage": 0.00045, + "percentile": "0.16001e0" + } + ], "cwes": [ { "cwe_id": "CWE-200", @@ -255262,6 +255294,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -256563,6 +256615,12 @@ "score": 8.7 } }, + "epss": [ + { + "percentage": 0.00045, + "percentile": "0.16001e0" + } + ], "cwes": [ { "cwe_id": "CWE-200", @@ -257037,6 +257095,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -257659,6 +257737,12 @@ "score": 8.5 } }, + "epss": [ + { + "percentage": 0.00045, + "percentile": "0.16001e0" + } + ], "cwes": [ { "cwe_id": "CWE-532", @@ -257987,6 +258071,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -258979,6 +259083,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": "array", "description": "Details for the advisory pertaining to Common Weakness Enumeration.", @@ -430336,6 +430460,808 @@ ] } ], + "network-configurations": [ + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations", + "title": "List hosted compute network configurations for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"
", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"
", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "read" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "total_count": 2, + "network_configurations": [ + { + "id": "123456789ABCDEF", + "name": "My network configuration", + "compute_service": "actions", + "network_settings_ids": [ + "23456789ABDCEF1", + "3456789ABDCEF12" + ], + "created_on": "2022-10-09T23:39:01Z" + }, + { + "id": "456789ABDCEF123", + "name": "My other configuration", + "compute_service": "none", + "network_settings_ids": [ + "56789ABDCEF1234", + "6789ABDCEF12345" + ], + "created_on": "2023-04-26T15:23:37Z" + } + ] + }, + "schema": { + "type": "object", + "required": [ + "total_count", + "network_configurations" + ], + "properties": { + "total_count": { + "type": "integer" + }, + "network_configurations": { + "type": "array", + "items": { + "title": "Hosted compute network configuration", + "description": "A hosted compute network configuration.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network configuration.", + "type": "string", + "examples": [ + "123ABC456DEF789" + ] + }, + "name": { + "description": "The name of the network configuration.", + "type": "string", + "examples": [ + "my-network-configuration" + ] + }, + "compute_service": { + "description": "The hosted compute service the network configuration supports.", + "type": "string", + "enum": [ + "none", + "actions", + "codespaces" + ] + }, + "network_settings_ids": { + "description": "The unique identifier of each network settings in the configuration.", + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "123ABC456DEF789" + ] + }, + "created_on": { + "description": "The time at which the network configuration was created, in ISO 8601 format.", + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2024-04-26T11:31:07Z" + ] + } + }, + "required": [ + "id", + "name", + "created_on" + ] + } + } + } + } + } + } + ], + "previews": [], + "descriptionHTML": "Lists all hosted compute network configurations configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "post", + "requestPath": "/orgs/{org}/settings/network-configurations", + "title": "Create a hosted compute network configuration for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "string", + "name": "name", + "in": "body", + "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
", + "isRequired": true + }, + { + "type": "string", + "name": "compute_service", + "in": "body", + "description": "The hosted compute service to use for the network configuration.
", + "enum": [ + "none", + "actions" + ] + }, + { + "type": "array of strings", + "name": "network_settings_ids", + "in": "body", + "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
", + "isRequired": true + } + ], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "write" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "contentType": "application/json", + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "bodyParameters": { + "name": "my-network-configuration", + "network_settings_ids": [ + "23456789ABDCEF1" + ], + "compute_service": "actions" + }, + "parameters": { + "org": "ORG" + } + }, + "response": { + "statusCode": "201", + "contentType": "application/json", + "description": "Response
", + "example": { + "id": "123456789ABCDEF", + "name": "My network configuration", + "compute_service": "actions", + "network_settings_ids": [ + "23456789ABDCEF1", + "3456789ABDCEF12" + ], + "created_on": "2022-10-09T23:39:01Z" + }, + "schema": { + "title": "Hosted compute network configuration", + "description": "A hosted compute network configuration.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network configuration.", + "type": "string", + "examples": [ + "123ABC456DEF789" + ] + }, + "name": { + "description": "The name of the network configuration.", + "type": "string", + "examples": [ + "my-network-configuration" + ] + }, + "compute_service": { + "description": "The hosted compute service the network configuration supports.", + "type": "string", + "enum": [ + "none", + "actions", + "codespaces" + ] + }, + "network_settings_ids": { + "description": "The unique identifier of each network settings in the configuration.", + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "123ABC456DEF789" + ] + }, + "created_on": { + "description": "The time at which the network configuration was created, in ISO 8601 format.", + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2024-04-26T11:31:07Z" + ] + } + }, + "required": [ + "id", + "name", + "created_on" + ] + } + } + } + ], + "previews": [], + "descriptionHTML": "Creates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
Created
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", + "title": "Get a hosted compute network configuration for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "network_configuration_id", + "description": "Unique identifier of the hosted compute network configuration.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "read" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG", + "network_configuration_id": "NETWORK_CONFIGURATION_ID" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "id": "123456789ABCDEF", + "name": "My network configuration", + "compute_service": "actions", + "network_settings_ids": [ + "23456789ABDCEF1", + "3456789ABDCEF12" + ], + "created_on": "2022-10-09T23:39:01Z" + }, + "schema": { + "title": "Hosted compute network configuration", + "description": "A hosted compute network configuration.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network configuration.", + "type": "string", + "examples": [ + "123ABC456DEF789" + ] + }, + "name": { + "description": "The name of the network configuration.", + "type": "string", + "examples": [ + "my-network-configuration" + ] + }, + "compute_service": { + "description": "The hosted compute service the network configuration supports.", + "type": "string", + "enum": [ + "none", + "actions", + "codespaces" + ] + }, + "network_settings_ids": { + "description": "The unique identifier of each network settings in the configuration.", + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "123ABC456DEF789" + ] + }, + "created_on": { + "description": "The time at which the network configuration was created, in ISO 8601 format.", + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2024-04-26T11:31:07Z" + ] + } + }, + "required": [ + "id", + "name", + "created_on" + ] + } + } + } + ], + "previews": [], + "descriptionHTML": "Gets a hosted compute network configuration configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "patch", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", + "title": "Update a hosted compute network configuration for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "network_configuration_id", + "description": "Unique identifier of the hosted compute network configuration.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [ + { + "type": "string", + "name": "name", + "in": "body", + "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
" + }, + { + "type": "string", + "name": "compute_service", + "in": "body", + "description": "The hosted compute service to use for the network configuration.
", + "enum": [ + "none", + "actions" + ] + }, + { + "type": "array of strings", + "name": "network_settings_ids", + "in": "body", + "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
" + } + ], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "write" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "contentType": "application/json", + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "bodyParameters": { + "name": "my-network-configuration", + "network_settings_ids": [ + "23456789ABDCEF1" + ], + "compute_service": "actions" + }, + "parameters": { + "org": "ORG", + "network_configuration_id": "NETWORK_CONFIGURATION_ID" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "id": "123456789ABCDEF", + "name": "My network configuration", + "compute_service": "actions", + "network_settings_ids": [ + "23456789ABDCEF1", + "3456789ABDCEF12" + ], + "created_on": "2022-10-09T23:39:01Z" + }, + "schema": { + "title": "Hosted compute network configuration", + "description": "A hosted compute network configuration.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network configuration.", + "type": "string", + "examples": [ + "123ABC456DEF789" + ] + }, + "name": { + "description": "The name of the network configuration.", + "type": "string", + "examples": [ + "my-network-configuration" + ] + }, + "compute_service": { + "description": "The hosted compute service the network configuration supports.", + "type": "string", + "enum": [ + "none", + "actions", + "codespaces" + ] + }, + "network_settings_ids": { + "description": "The unique identifier of each network settings in the configuration.", + "type": "array", + "items": { + "type": "string" + }, + "examples": [ + "123ABC456DEF789" + ] + }, + "created_on": { + "description": "The time at which the network configuration was created, in ISO 8601 format.", + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2024-04-26T11:31:07Z" + ] + } + }, + "required": [ + "id", + "name", + "created_on" + ] + } + } + } + ], + "previews": [], + "descriptionHTML": "Updates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
OK
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "delete", + "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", + "title": "Delete a hosted compute network configuration from an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "network_configuration_id", + "description": "Unique identifier of the hosted compute network configuration.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "write" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG", + "network_configuration_id": "NETWORK_CONFIGURATION_ID" + } + }, + "response": { + "statusCode": "204", + "description": "Response
" + } + } + ], + "previews": [], + "descriptionHTML": "Deletes a hosted compute network configuration from an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
No Content
" + } + ] + }, + { + "serverUrl": "https://api.github.com", + "verb": "get", + "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}", + "title": "Get a hosted compute network settings resource for an organization", + "category": "orgs", + "subcategory": "network-configurations", + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "network_settings_id", + "description": "Unique identifier of the hosted compute network settings.
", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "bodyParameters": [], + "progAccess": { + "userToServerRest": true, + "serverToServer": true, + "fineGrainedPat": true, + "permissions": [ + { + "\"Network configurations\" organization permissions": "read" + } + ] + }, + "codeExamples": [ + { + "key": "default", + "request": { + "description": "Example", + "acceptHeader": "application/vnd.github.v3+json", + "parameters": { + "org": "ORG", + "network_settings_id": "NETWORK_SETTINGS_ID" + } + }, + "response": { + "statusCode": "200", + "contentType": "application/json", + "description": "Response
", + "example": { + "id": "220F78DACB92BBFBC5E6F22DE1CCF52309D", + "network_configuration_id": "934E208B3EE0BD60CF5F752C426BFB53562", + "name": "my_network_settings", + "subnet_id": "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet", + "region": "eastus" + }, + "schema": { + "title": "Hosted compute network settings resource", + "description": "A hosted compute network settings resource.", + "type": "object", + "properties": { + "id": { + "description": "The unique identifier of the network settings resource.", + "type": "string", + "examples": [ + "220F78DACB92BBFBC5E6F22DE1CCF52309D" + ] + }, + "network_configuration_id": { + "description": "The identifier of the network configuration that is using this settings resource.", + "type": "string", + "examples": [ + "934E208B3EE0BD60CF5F752C426BFB53562" + ] + }, + "name": { + "description": "The name of the network settings resource.", + "type": "string", + "examples": [ + "my-network-settings" + ] + }, + "subnet_id": { + "description": "The subnet this network settings resource is configured for.", + "type": "string", + "examples": [ + "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet" + ] + }, + "region": { + "description": "The location of the subnet this network settings resource is configured for.", + "type": "string", + "examples": [ + "eastus" + ] + } + }, + "required": [ + "id", + "name", + "subnet_id", + "region" + ] + } + } + } + ], + "previews": [], + "descriptionHTML": "Gets a hosted compute network settings resource configured for an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" + } + ] + } + ], "organization-roles": [ { "serverUrl": "https://api.github.com", @@ -600324,6 +601250,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -600348,20 +601294,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -601073,6 +602005,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -601097,20 +602049,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -622872,810 +623810,6 @@ } ] }, - "settings": { - "network-configurations": [ - { - "serverUrl": "https://api.github.com", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations", - "title": "List hosted compute network configurations for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"
", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"
", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "bodyParameters": [], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "read" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "parameters": { - "org": "ORG" - } - }, - "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": { - "total_count": 2, - "network_configurations": [ - { - "id": "123456789ABCDEF", - "name": "My network configuration", - "compute_service": "actions", - "network_settings_ids": [ - "23456789ABDCEF1", - "3456789ABDCEF12" - ], - "created_on": "2022-10-09T23:39:01Z" - }, - { - "id": "456789ABDCEF123", - "name": "My other configuration", - "compute_service": "none", - "network_settings_ids": [ - "56789ABDCEF1234", - "6789ABDCEF12345" - ], - "created_on": "2023-04-26T15:23:37Z" - } - ] - }, - "schema": { - "type": "object", - "required": [ - "total_count", - "network_configurations" - ], - "properties": { - "total_count": { - "type": "integer" - }, - "network_configurations": { - "type": "array", - "items": { - "title": "Hosted compute network configuration", - "description": "A hosted compute network configuration.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network configuration.", - "type": "string", - "examples": [ - "123ABC456DEF789" - ] - }, - "name": { - "description": "The name of the network configuration.", - "type": "string", - "examples": [ - "my-network-configuration" - ] - }, - "compute_service": { - "description": "The hosted compute service the network configuration supports.", - "type": "string", - "enum": [ - "none", - "actions", - "codespaces" - ] - }, - "network_settings_ids": { - "description": "The unique identifier of each network settings in the configuration.", - "type": "array", - "items": { - "type": "string" - }, - "examples": [ - "123ABC456DEF789" - ] - }, - "created_on": { - "description": "The time at which the network configuration was created, in ISO 8601 format.", - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2024-04-26T11:31:07Z" - ] - } - }, - "required": [ - "id", - "name", - "created_on" - ] - } - } - } - } - } - } - ], - "previews": [], - "descriptionHTML": "Lists all hosted compute network configurations configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "post", - "requestPath": "/orgs/{org}/settings/network-configurations", - "title": "Create a hosted compute network configuration for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [ - { - "type": "string", - "name": "name", - "in": "body", - "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
", - "isRequired": true - }, - { - "type": "string", - "name": "compute_service", - "in": "body", - "description": "The hosted compute service to use for the network configuration.
", - "enum": [ - "none", - "actions" - ] - }, - { - "type": "array of strings", - "name": "network_settings_ids", - "in": "body", - "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
", - "isRequired": true - } - ], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "write" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "contentType": "application/json", - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "bodyParameters": { - "name": "my-network-configuration", - "network_settings_ids": [ - "23456789ABDCEF1" - ], - "compute_service": "actions" - }, - "parameters": { - "org": "ORG" - } - }, - "response": { - "statusCode": "201", - "contentType": "application/json", - "description": "Response
", - "example": { - "id": "123456789ABCDEF", - "name": "My network configuration", - "compute_service": "actions", - "network_settings_ids": [ - "23456789ABDCEF1", - "3456789ABDCEF12" - ], - "created_on": "2022-10-09T23:39:01Z" - }, - "schema": { - "title": "Hosted compute network configuration", - "description": "A hosted compute network configuration.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network configuration.", - "type": "string", - "examples": [ - "123ABC456DEF789" - ] - }, - "name": { - "description": "The name of the network configuration.", - "type": "string", - "examples": [ - "my-network-configuration" - ] - }, - "compute_service": { - "description": "The hosted compute service the network configuration supports.", - "type": "string", - "enum": [ - "none", - "actions", - "codespaces" - ] - }, - "network_settings_ids": { - "description": "The unique identifier of each network settings in the configuration.", - "type": "array", - "items": { - "type": "string" - }, - "examples": [ - "123ABC456DEF789" - ] - }, - "created_on": { - "description": "The time at which the network configuration was created, in ISO 8601 format.", - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2024-04-26T11:31:07Z" - ] - } - }, - "required": [ - "id", - "name", - "created_on" - ] - } - } - } - ], - "previews": [], - "descriptionHTML": "Creates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
Created
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", - "title": "Get a hosted compute network configuration for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "network_configuration_id", - "description": "Unique identifier of the hosted compute network configuration.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "read" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "parameters": { - "org": "ORG", - "network_configuration_id": "NETWORK_CONFIGURATION_ID" - } - }, - "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": { - "id": "123456789ABCDEF", - "name": "My network configuration", - "compute_service": "actions", - "network_settings_ids": [ - "23456789ABDCEF1", - "3456789ABDCEF12" - ], - "created_on": "2022-10-09T23:39:01Z" - }, - "schema": { - "title": "Hosted compute network configuration", - "description": "A hosted compute network configuration.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network configuration.", - "type": "string", - "examples": [ - "123ABC456DEF789" - ] - }, - "name": { - "description": "The name of the network configuration.", - "type": "string", - "examples": [ - "my-network-configuration" - ] - }, - "compute_service": { - "description": "The hosted compute service the network configuration supports.", - "type": "string", - "enum": [ - "none", - "actions", - "codespaces" - ] - }, - "network_settings_ids": { - "description": "The unique identifier of each network settings in the configuration.", - "type": "array", - "items": { - "type": "string" - }, - "examples": [ - "123ABC456DEF789" - ] - }, - "created_on": { - "description": "The time at which the network configuration was created, in ISO 8601 format.", - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2024-04-26T11:31:07Z" - ] - } - }, - "required": [ - "id", - "name", - "created_on" - ] - } - } - } - ], - "previews": [], - "descriptionHTML": "Gets a hosted compute network configuration configured in an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "patch", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", - "title": "Update a hosted compute network configuration for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "network_configuration_id", - "description": "Unique identifier of the hosted compute network configuration.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [ - { - "type": "string", - "name": "name", - "in": "body", - "description": "Name of the network configuration. Must be between 1 and 100 characters and may only contain upper and lowercase letters a-z, numbers 0-9, '.', '-', and '_'.
" - }, - { - "type": "string", - "name": "compute_service", - "in": "body", - "description": "The hosted compute service to use for the network configuration.
", - "enum": [ - "none", - "actions" - ] - }, - { - "type": "array of strings", - "name": "network_settings_ids", - "in": "body", - "description": "The identifier of the network settings to use for the network configuration. Exactly one network settings must be specified.
" - } - ], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "write" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "contentType": "application/json", - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "bodyParameters": { - "name": "my-network-configuration", - "network_settings_ids": [ - "23456789ABDCEF1" - ], - "compute_service": "actions" - }, - "parameters": { - "org": "ORG", - "network_configuration_id": "NETWORK_CONFIGURATION_ID" - } - }, - "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": { - "id": "123456789ABCDEF", - "name": "My network configuration", - "compute_service": "actions", - "network_settings_ids": [ - "23456789ABDCEF1", - "3456789ABDCEF12" - ], - "created_on": "2022-10-09T23:39:01Z" - }, - "schema": { - "title": "Hosted compute network configuration", - "description": "A hosted compute network configuration.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network configuration.", - "type": "string", - "examples": [ - "123ABC456DEF789" - ] - }, - "name": { - "description": "The name of the network configuration.", - "type": "string", - "examples": [ - "my-network-configuration" - ] - }, - "compute_service": { - "description": "The hosted compute service the network configuration supports.", - "type": "string", - "enum": [ - "none", - "actions", - "codespaces" - ] - }, - "network_settings_ids": { - "description": "The unique identifier of each network settings in the configuration.", - "type": "array", - "items": { - "type": "string" - }, - "examples": [ - "123ABC456DEF789" - ] - }, - "created_on": { - "description": "The time at which the network configuration was created, in ISO 8601 format.", - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2024-04-26T11:31:07Z" - ] - } - }, - "required": [ - "id", - "name", - "created_on" - ] - } - } - } - ], - "previews": [], - "descriptionHTML": "Updates a hosted compute network configuration for an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
OK
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "delete", - "requestPath": "/orgs/{org}/settings/network-configurations/{network_configuration_id}", - "title": "Delete a hosted compute network configuration from an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "network_configuration_id", - "description": "Unique identifier of the hosted compute network configuration.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "write" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "parameters": { - "org": "ORG", - "network_configuration_id": "NETWORK_CONFIGURATION_ID" - } - }, - "response": { - "statusCode": "204", - "description": "Response
" - } - } - ], - "previews": [], - "descriptionHTML": "Deletes a hosted compute network configuration from an organization.
\nOAuth app tokens and personal access tokens (classic) need the write:network_configurations
scope to use this endpoint.
No Content
" - } - ] - }, - { - "serverUrl": "https://api.github.com", - "verb": "get", - "requestPath": "/orgs/{org}/settings/network-settings/{network_settings_id}", - "title": "Get a hosted compute network settings resource for an organization", - "category": "settings", - "subcategory": "network-configurations", - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "network_settings_id", - "description": "Unique identifier of the hosted compute network settings.
", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "bodyParameters": [], - "progAccess": { - "userToServerRest": true, - "serverToServer": true, - "fineGrainedPat": true, - "permissions": [ - { - "\"Network configurations\" organization permissions": "read" - } - ] - }, - "codeExamples": [ - { - "key": "default", - "request": { - "description": "Example", - "acceptHeader": "application/vnd.github.v3+json", - "parameters": { - "org": "ORG", - "network_settings_id": "NETWORK_SETTINGS_ID" - } - }, - "response": { - "statusCode": "200", - "contentType": "application/json", - "description": "Response
", - "example": { - "id": "220F78DACB92BBFBC5E6F22DE1CCF52309D", - "network_configuration_id": "934E208B3EE0BD60CF5F752C426BFB53562", - "name": "my_network_settings", - "subnet_id": "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet", - "region": "eastus" - }, - "schema": { - "title": "Hosted compute network settings resource", - "description": "A hosted compute network settings resource.", - "type": "object", - "properties": { - "id": { - "description": "The unique identifier of the network settings resource.", - "type": "string", - "examples": [ - "220F78DACB92BBFBC5E6F22DE1CCF52309D" - ] - }, - "network_configuration_id": { - "description": "The identifier of the network configuration that is using this settings resource.", - "type": "string", - "examples": [ - "934E208B3EE0BD60CF5F752C426BFB53562" - ] - }, - "name": { - "description": "The name of the network settings resource.", - "type": "string", - "examples": [ - "my-network-settings" - ] - }, - "subnet_id": { - "description": "The subnet this network settings resource is configured for.", - "type": "string", - "examples": [ - "/subscriptions/14839728-3ad9-43ab-bd2b-fa6ad0f75e2a/resourceGroups/my-rg/providers/Microsoft.Network/virtualNetworks/my-vnet/subnets/my-subnet" - ] - }, - "region": { - "description": "The location of the subnet this network settings resource is configured for.", - "type": "string", - "examples": [ - "eastus" - ] - } - }, - "required": [ - "id", - "name", - "subnet_id", - "region" - ] - } - } - } - ], - "previews": [], - "descriptionHTML": "Gets a hosted compute network settings resource configured for an organization.
\nOAuth app tokens and personal access tokens (classic) need the read:network_configurations
scope to use this endpoint.
OK
" - } - ] - } - ] - }, "teams": { "teams": [ { diff --git a/src/rest/data/ghes-3.10-2022-11-28/schema.json b/src/rest/data/ghes-3.10-2022-11-28/schema.json index a5da3d8cdfe6..d037c5528a4c 100644 --- a/src/rest/data/ghes-3.10-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.10-2022-11-28/schema.json @@ -182308,8 +182308,7 @@ } ], "published_at": "2021-06-01T17:38:00Z", - "updated_at": "2021-08-12T23:06:00Z", - "withdrawn_at": null + "updated_at": "2021-08-12T23:06:00Z" }, "security_vulnerability": { "package": { @@ -182325,12 +182324,7 @@ "url": "https://api.github.com/repos/octocat/hello-world/dependabot/alerts/1", "html_url": "https://github.com/octocat/hello-world/security/dependabot/1", "created_at": "2022-06-14T15:21:52Z", - "updated_at": "2022-06-14T15:21:52Z", - "dismissed_at": null, - "dismissed_by": null, - "dismissed_reason": null, - "dismissed_comment": null, - "fixed_at": null + "updated_at": "2022-06-14T15:21:52Z" }, "schema": { "type": "object", diff --git a/src/rest/data/ghes-3.11-2022-11-28/schema.json b/src/rest/data/ghes-3.11-2022-11-28/schema.json index 98fe41b56dbc..87eeb52bded6 100644 --- a/src/rest/data/ghes-3.11-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.11-2022-11-28/schema.json @@ -182344,8 +182344,7 @@ } ], "published_at": "2021-06-01T17:38:00Z", - "updated_at": "2021-08-12T23:06:00Z", - "withdrawn_at": null + "updated_at": "2021-08-12T23:06:00Z" }, "security_vulnerability": { "package": { @@ -182361,12 +182360,7 @@ "url": "https://api.github.com/repos/octocat/hello-world/dependabot/alerts/1", "html_url": "https://github.com/octocat/hello-world/security/dependabot/1", "created_at": "2022-06-14T15:21:52Z", - "updated_at": "2022-06-14T15:21:52Z", - "dismissed_at": null, - "dismissed_by": null, - "dismissed_reason": null, - "dismissed_comment": null, - "fixed_at": null + "updated_at": "2022-06-14T15:21:52Z" }, "schema": { "type": "object", @@ -491735,6 +491729,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -491759,20 +491773,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -492484,6 +492484,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -492508,20 +492528,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", diff --git a/src/rest/data/ghes-3.12-2022-11-28/schema.json b/src/rest/data/ghes-3.12-2022-11-28/schema.json index 76365e9a5d0d..51bbfe93d141 100644 --- a/src/rest/data/ghes-3.12-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.12-2022-11-28/schema.json @@ -182664,8 +182664,7 @@ } ], "published_at": "2021-06-01T17:38:00Z", - "updated_at": "2021-08-12T23:06:00Z", - "withdrawn_at": null + "updated_at": "2021-08-12T23:06:00Z" }, "security_vulnerability": { "package": { @@ -182681,12 +182680,7 @@ "url": "https://api.github.com/repos/octocat/hello-world/dependabot/alerts/1", "html_url": "https://github.com/octocat/hello-world/security/dependabot/1", "created_at": "2022-06-14T15:21:52Z", - "updated_at": "2022-06-14T15:21:52Z", - "dismissed_at": null, - "dismissed_by": null, - "dismissed_reason": null, - "dismissed_comment": null, - "fixed_at": null + "updated_at": "2022-06-14T15:21:52Z" }, "schema": { "type": "object", @@ -495290,6 +495284,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -495314,20 +495328,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -496039,6 +496039,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -496063,20 +496083,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", diff --git a/src/rest/data/ghes-3.13-2022-11-28/schema.json b/src/rest/data/ghes-3.13-2022-11-28/schema.json index 6132778011c0..f635e47beccd 100644 --- a/src/rest/data/ghes-3.13-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.13-2022-11-28/schema.json @@ -182808,8 +182808,7 @@ } ], "published_at": "2021-06-01T17:38:00Z", - "updated_at": "2021-08-12T23:06:00Z", - "withdrawn_at": null + "updated_at": "2021-08-12T23:06:00Z" }, "security_vulnerability": { "package": { @@ -182825,12 +182824,7 @@ "url": "https://api.github.com/repos/octocat/hello-world/dependabot/alerts/1", "html_url": "https://github.com/octocat/hello-world/security/dependabot/1", "created_at": "2022-06-14T15:21:52Z", - "updated_at": "2022-06-14T15:21:52Z", - "dismissed_at": null, - "dismissed_by": null, - "dismissed_reason": null, - "dismissed_comment": null, - "fixed_at": null + "updated_at": "2022-06-14T15:21:52Z" }, "schema": { "type": "object", @@ -498433,6 +498427,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -498457,20 +498471,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -499182,6 +499182,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -499206,20 +499226,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", diff --git a/src/rest/data/ghes-3.14-2022-11-28/schema.json b/src/rest/data/ghes-3.14-2022-11-28/schema.json index 7e294a315091..b302d1461c3a 100644 --- a/src/rest/data/ghes-3.14-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.14-2022-11-28/schema.json @@ -182808,8 +182808,7 @@ } ], "published_at": "2021-06-01T17:38:00Z", - "updated_at": "2021-08-12T23:06:00Z", - "withdrawn_at": null + "updated_at": "2021-08-12T23:06:00Z" }, "security_vulnerability": { "package": { @@ -182825,12 +182824,7 @@ "url": "https://api.github.com/repos/octocat/hello-world/dependabot/alerts/1", "html_url": "https://github.com/octocat/hello-world/security/dependabot/1", "created_at": "2022-06-14T15:21:52Z", - "updated_at": "2022-06-14T15:21:52Z", - "dismissed_at": null, - "dismissed_by": null, - "dismissed_reason": null, - "dismissed_comment": null, - "fixed_at": null + "updated_at": "2022-06-14T15:21:52Z" }, "schema": { "type": "object", @@ -502234,6 +502228,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -502258,20 +502272,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -502983,6 +502983,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -503007,20 +503027,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", diff --git a/src/rest/data/ghes-3.15-2022-11-28/schema.json b/src/rest/data/ghes-3.15-2022-11-28/schema.json index 2ec0761b9584..3d28cd5609dc 100644 --- a/src/rest/data/ghes-3.15-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.15-2022-11-28/schema.json @@ -186983,8 +186983,7 @@ } ], "published_at": "2021-06-01T17:38:00Z", - "updated_at": "2021-08-12T23:06:00Z", - "withdrawn_at": null + "updated_at": "2021-08-12T23:06:00Z" }, "security_vulnerability": { "package": { @@ -187000,12 +186999,7 @@ "url": "https://api.github.com/repos/octocat/hello-world/dependabot/alerts/1", "html_url": "https://github.com/octocat/hello-world/security/dependabot/1", "created_at": "2022-06-14T15:21:52Z", - "updated_at": "2022-06-14T15:21:52Z", - "dismissed_at": null, - "dismissed_by": null, - "dismissed_reason": null, - "dismissed_comment": null, - "fixed_at": null + "updated_at": "2022-06-14T15:21:52Z" }, "schema": { "type": "object", @@ -507075,6 +507069,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -507099,20 +507113,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", @@ -507824,6 +507824,26 @@ } } }, + "epss": { + "type": [ + "object", + "null" + ], + "readOnly": true, + "description": "The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss).", + "properties": { + "percentage": { + "type": "number", + "minimum": 0, + "maximum": 100 + }, + "percentile": { + "type": "number", + "minimum": 0, + "maximum": 100 + } + } + }, "cwes": { "type": [ "array", @@ -507848,20 +507868,6 @@ ] } }, - "epss": { - "type": [ - "object", - "null" - ], - "properties": { - "percentage": { - "type": "number" - }, - "percentile": { - "type": "number" - } - } - }, "credits": { "type": [ "array", diff --git a/src/rest/lib/config.json b/src/rest/lib/config.json index 2b6916068f36..8eac07e3d6d1 100644 --- a/src/rest/lib/config.json +++ b/src/rest/lib/config.json @@ -50,5 +50,5 @@ ] } }, - "sha": "7509e549b11bd1aeebf531fc527c542a70cf944b" + "sha": "795897c437bded214ee22f511306cce3f387ca05" } \ No newline at end of file diff --git a/src/webhooks/data/fpt/schema.json b/src/webhooks/data/fpt/schema.json index 14eac11d66ab..051cd65f7a39 100644 --- a/src/webhooks/data/fpt/schema.json +++ b/src/webhooks/data/fpt/schema.json @@ -13486,6 +13486,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -14118,6 +14135,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -14750,6 +14784,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -15382,6 +15433,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -16014,6 +16082,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -16646,6 +16731,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -17278,6 +17380,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", diff --git a/src/webhooks/data/ghec/schema.json b/src/webhooks/data/ghec/schema.json index 3a633b08aa12..b49882871aa3 100644 --- a/src/webhooks/data/ghec/schema.json +++ b/src/webhooks/data/ghec/schema.json @@ -15890,6 +15890,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -16522,6 +16539,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -17154,6 +17188,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -17786,6 +17837,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -18418,6 +18486,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -19050,6 +19135,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", @@ -19682,6 +19784,23 @@ } ] }, + { + "type": "object or null", + "name": "epss", + "description": "The EPSS scores as calculated by the Exploit Prediction Scoring System.
", + "childParamsGroups": [ + { + "type": "number", + "name": "percentage", + "description": "" + }, + { + "type": "number", + "name": "percentile", + "description": "" + } + ] + }, { "type": "array of objects", "name": "cwes", diff --git a/src/webhooks/lib/config.json b/src/webhooks/lib/config.json index 95b1ca96828e..88ec8e5b2668 100644 --- a/src/webhooks/lib/config.json +++ b/src/webhooks/lib/config.json @@ -1,3 +1,3 @@ { - "sha": "7509e549b11bd1aeebf531fc527c542a70cf944b" + "sha": "795897c437bded214ee22f511306cce3f387ca05" } \ No newline at end of file diff --git a/src/workflows/purge-old-deployment-environments.ts b/src/workflows/purge-old-deployment-environments.ts deleted file mode 100755 index 9c1726247c77..000000000000 --- a/src/workflows/purge-old-deployment-environments.ts +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env node - -import assert from 'node:assert/strict' - -import { getOctokit } from '@actions/github' - -main() -async function main() { - const DRY_RUN = Boolean(JSON.parse(process.env.DRY_RUN || 'false')) - const MAX_DELETIONS = parseInt(JSON.parse(process.env.MAX_DELETIONS || '10')) - const MIN_AGE_DAYS = parseInt(process.env.MIN_AGE_DAYS || '90', 10) - - const [owner, repo] = (process.env.GITHUB_REPOSITORY || '').split('/') || [] - if (!owner || !repo) { - throw new Error('GITHUB_REPOSITORY environment variable not set') - } - const token = process.env.GITHUB_TOKEN - if (!token) { - throw new Error(`GITHUB_TOKEN environment variable not set`) - } - const github = getOctokit(token) - - // The sort order is not explicitly listed for this API endpoint. - // In practice it appears to list those that are oldest first. - // But to guarantee that it reaches the oldest, we paginate over - // all of them. - const environments = await github.paginate('GET /repos/{owner}/{repo}/environments', { - owner, - repo, - }) - - console.log(`Found ${environments.length.toLocaleString()} environments in total`) - - let countDeletions = 0 - for (const environment of environments) { - const ageDays = (Date.now() - Date.parse(environment.created_at)) / 1000 / 60 / 60 / 24 - if (ageDays > MIN_AGE_DAYS) { - console.log( - `Deleting environment ${environment.name} created ${Math.ceil(ageDays)} days ago`, - DRY_RUN ? '(DRY RUN)' : '', - ) - if (!DRY_RUN) { - const { status } = await github.request( - 'DELETE /repos/{owner}/{repo}/environments/{name}', - { - owner, - repo, - name: environment.name, - }, - ) - assert(status === 204, `Expected status 204, got ${status}`) - } - countDeletions++ - if (MAX_DELETIONS && countDeletions >= MAX_DELETIONS) { - console.log(`Reached max number of deletions: ${MAX_DELETIONS}`) - break - } - } else { - console.log( - `Environment ${environment.name} (${environment.id}) created ${Math.ceil( - ageDays, - )} days ago, is *not* old enough`, - ) - } - } - console.log(`Deleted ${countDeletions} environments`, DRY_RUN ? '(DRY RUN)' : '') -} diff --git a/src/workflows/tests/actions-workflows.ts b/src/workflows/tests/actions-workflows.ts index df1461e96fea..ed30456c6d84 100644 --- a/src/workflows/tests/actions-workflows.ts +++ b/src/workflows/tests/actions-workflows.ts @@ -7,6 +7,8 @@ import yaml from 'js-yaml' import { flatten } from 'flat' import { chain, get } from 'lodash-es' +const githubOwnedActionsRegex = + /^(actions\/(cache|checkout|download-artifact|upload-artifact)@v\d+(\.\d+)*)$/ const actionHashRegexp = /^[A-Za-z0-9-/]+@[0-9a-f]{40}$/ const checkoutRegexp = /^[actions/checkout]+@[0-9a-f]{40}$/ const permissionsRegexp = /(read|write)/ @@ -71,7 +73,9 @@ const dailyWorkflows = scheduledWorkflows.filter(({ data }) => describe('GitHub Actions workflows', () => { test.each(allUsedActions)('requires specific hash: %p', (actionName) => { - expect(actionName).toMatch(actionHashRegexp) + const matchesGitHubOwnedActions = githubOwnedActionsRegex.test(actionName) + const matchesActionHash = actionHashRegexp.test(actionName) + expect(matchesGitHubOwnedActions || matchesActionHash).toBe(true) }) test.each(scheduledWorkflows)(