Skip to content

Commit e52ecac

Browse files
authored
Merge pull request #46310 from github/repo-sync
Repo sync
2 parents ba6f6f9 + dafd363 commit e52ecac

53 files changed

Lines changed: 30872 additions & 138 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/close-prs-without-help-wanted-issue.yml‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
}}
2020
runs-on: ubuntu-latest
2121
steps:
22-
- name: Close the pull request if a linked issue lacks the help wanted label
22+
- name: Close the pull request if a linked issue opened by someone else lacks the help wanted label
2323
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
2424
with:
2525
script: |
@@ -31,8 +31,14 @@ jobs:
3131
repository(owner: $owner, name: $repo) {
3232
pullRequest(number: $number) {
3333
state
34+
author {
35+
login
36+
}
3437
closingIssuesReferences(first: 100) {
3538
nodes {
39+
author {
40+
login
41+
}
3642
labels(first: 100) {
3743
nodes {
3844
name
@@ -61,11 +67,13 @@ jobs:
6167
return
6268
}
6369
70+
const pullRequestAuthor = pullRequest.author?.login?.toLowerCase()
6471
const issuesWithoutHelpWanted = closingIssues.filter(issue =>
65-
!issue.labels.nodes.some(label => label.name.toLowerCase() === 'help wanted'),
72+
!issue.labels.nodes.some(label => label.name.toLowerCase() === 'help wanted') &&
73+
(!pullRequestAuthor || issue.author?.login?.toLowerCase() !== pullRequestAuthor),
6674
)
6775
if (!issuesWithoutHelpWanted.length) {
68-
console.log('Every linked issue has the help wanted label')
76+
console.log('Every linked issue has the help wanted label or was opened by the pull request author')
6977
return
7078
}
7179

‎config/kubernetes/production/services/webapp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v1
33
kind: Service
44
metadata:
55
annotations:
6-
moda.github.net/allowed-ips: 23.235.32.0/20,43.249.72.0/22,103.244.50.0/24,103.245.222.0/23,103.245.224.0/24,104.156.80.0/20,140.248.64.0/18,140.248.128.0/17,146.75.0.0/17,151.101.0.0/16,157.52.64.0/18,167.82.0.0/17,167.82.128.0/20,167.82.160.0/20,167.82.224.0/20,172.111.64.0/18,185.31.16.0/22,199.27.72.0/21,199.232.0.0/16
6+
moda.github.net/allowed-ips: 23.235.32.0/20,43.249.72.0/22,90.98.0.0/17,90.98.128.0/18,103.244.50.0/24,103.245.222.0/23,103.245.224.0/24,104.156.80.0/20,140.248.64.0/18,140.248.128.0/17,146.75.0.0/17,151.101.0.0/16,157.52.64.0/18,167.82.0.0/17,167.82.128.0/20,167.82.160.0/20,167.82.224.0/20,172.111.64.0/18,185.31.16.0/22,199.27.72.0/21,199.232.0.0/16
77
moda.github.net/dns-registration-enabled: 'false'
88
moda.github.net/domain-name: docs-internal.github.com
99
moda.github.net/load-balancer-type: public-external-http

‎config/kustomize/overlays/production/services/webapp.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ metadata:
99
# Public load balancer. allowed-ips limits it to Fastly IP ranges.
1010
moda.github.net/load-balancer-type: public-external-http
1111
# .github/workflows/moda-allowed-ips.yml updates this list weekly.
12-
moda.github.net/allowed-ips: 23.235.32.0/20,43.249.72.0/22,103.244.50.0/24,103.245.222.0/23,103.245.224.0/24,104.156.80.0/20,140.248.64.0/18,140.248.128.0/17,146.75.0.0/17,151.101.0.0/16,157.52.64.0/18,167.82.0.0/17,167.82.128.0/20,167.82.160.0/20,167.82.224.0/20,172.111.64.0/18,185.31.16.0/22,199.27.72.0/21,199.232.0.0/16
12+
moda.github.net/allowed-ips: 23.235.32.0/20,43.249.72.0/22,90.98.0.0/17,90.98.128.0/18,103.244.50.0/24,103.245.222.0/23,103.245.224.0/24,104.156.80.0/20,140.248.64.0/18,140.248.128.0/17,146.75.0.0/17,151.101.0.0/16,157.52.64.0/18,167.82.0.0/17,167.82.128.0/20,167.82.160.0/20,167.82.224.0/20,172.111.64.0/18,185.31.16.0/22,199.27.72.0/21,199.232.0.0/16

‎content/actions/how-tos/secure-your-work/use-artifact-attestations/verify-attestations-offline.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,32 @@ You can then perform offline verification with the following command:
6868
```bash copy
6969
gh attestation verify PATH/TO/YOUR/BUILD/ARTIFACT-BINARY -R ORGANIZATION_NAME/REPOSITORY_NAME --bundle sha256:ae57936def59bc4c75edd3a837d89bcefc6d3a5e31d55a6fa7a71624f92c3c3b.jsonl --custom-trusted-root trusted_root.jsonl
7070
```
71+
72+
### Confirming the repository in an offline environment
73+
74+
When you verify offline, `gh attestation verify` compares the `-R` value only with the repository and owner names recorded in the attestation's signing certificate. These are the names that the repository and owner had when the attestation was created. The command can't detect whether the repository or owner has since been renamed, or whether a different repository or owner now uses that name.
75+
76+
To make sure an attestation comes from the repository that currently has the name, download its bundle from the attestation API, as described in Step 1. The attestation API returns only attestations from that repository.
77+
78+
The signing certificate also records the repository's ID. A repository keeps its ID when it's renamed, and a new repository that takes the old name gets a different ID. If you verify a bundle from another source, such as a bundle published alongside the artifact, compare this ID with the ID of the repository you expect.
79+
80+
1. On a machine that is online, get the ID of the repository that you expect the artifact to come from.
81+
82+
```bash copy
83+
gh api repos/ORGANIZATION_NAME/REPOSITORY_NAME --jq .id
84+
```
85+
86+
1. In your offline environment, add the `--format json` and `--jq` flags to the verification command to print the repository ID from each verified attestation.
87+
88+
For `-R`, replace `ORGANIZATION_NAME/REPOSITORY_NAME` with the owner and repository names recorded in the signing certificate. If the repository or owner has been renamed, these differ from the current names used for the API lookup.
89+
90+
```bash copy
91+
gh attestation verify PATH/TO/YOUR/BUILD/ARTIFACT-BINARY \
92+
-R ORGANIZATION_NAME/REPOSITORY_NAME \
93+
--bundle PATH/TO/YOUR/BUNDLE.jsonl \
94+
--custom-trusted-root trusted_root.jsonl \
95+
--format json \
96+
--jq '.[].verificationResult.signature.certificate.sourceRepositoryIdentifier'
97+
```
98+
99+
1. Check that each ID in the output matches the ID from the first step. Don't trust an attestation whose ID doesn't match, because another repository that used the same name created it.

‎content/admin/managing-your-enterprise-account/changing-the-url-for-your-enterprise.md‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,23 @@ category:
1414

1515
When you create an enterprise, you choose a "slug" for the enterprise, which is a string used in the URL for your enterprise. For example, if you chose `octo-enterprise` as the slug, the URL for your enterprise on {% data variables.product.prodname_dotcom_the_website %} would be `https://github.com/enterprises/octo-enterprise`.
1616

17-
If your company pays for {% data variables.product.prodname_ghe_cloud %} by credit card or PayPal, you can change the slug in the settings for your enterprise. When you change the slug, {% data variables.product.company_short %} does not set up any redirects from the old URL. Your old enterprise slug will immediately become available for another customer to use.
18-
1917
> [!NOTE]
20-
> If you pay for {% data variables.product.prodname_ghe_cloud %} via invoice, or if your enterprise uses {% data variables.product.prodname_emus %}, you must contact {% data variables.contact.contact_enterprise_sales %} to change your enterprise slug.
2118
> For enterprises hosted on {% data variables.enterprise.data_residency_site %}, changing the enterprise slug is not currently supported.
2219
20+
For enterprises hosted on {% data variables.product.prodname_dotcom_the_website %}, how you change your enterprise slug depends on your billing type and whether your enterprise uses {% data variables.product.prodname_emus %}.
21+
22+
{% rowheaders %}
23+
24+
| Enterprise configuration | How to change the slug |
25+
| --- | --- |
26+
| Self-serve billing without {% data variables.product.prodname_emus %} | Change the slug in your enterprise settings. See [Changing the enterprise slug](#changing-the-enterprise-slug). |
27+
| Self-serve billing with {% data variables.product.prodname_emus %} | Create a ticket through the {% data variables.contact.contact_enterprise_portal %} to request a slug change. |
28+
| Invoiced billing with or without {% data variables.product.prodname_emus %} | Contact {% data variables.contact.contact_enterprise_sales %} to request a slug change. |
29+
30+
{% endrowheaders %}
31+
32+
When you change the slug, {% data variables.product.company_short %} does not set up any redirects from the old URL. Your old enterprise slug will immediately become available for another enterprise to use.
33+
2334
## Considerations when changing your enterprise slug
2435

2536
Before changing the slug for an enterprise, ensure you have considered any parts of your enterprise's configuration, automations, or processes that may depend on the old enterprise slug. To minimize disruption, you should address these points either immediately before or immediately after changing the slug.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Troubleshooting authorization holds
3+
intro: If an authorization hold appears on your payment method, you can check what it means and what to do if the funds are not released.
4+
versions:
5+
fpt: '*'
6+
ghec: '*'
7+
shortTitle: Authorization holds
8+
contentType: how-tos
9+
category:
10+
- Set up payment
11+
---
12+
13+
An authorization hold verifies your payment method. No funds are taken from your account as it is not a charge.
14+
15+
## When you may see an authorization hold
16+
17+
We may place a temporary hold on your payment method when you start a subscription, update your payment method, or accrue significant usage of metered services. The amount usually ranges from $1 to the cost of the service you are purchasing.
18+
19+
## Where authorization holds appear
20+
21+
An authorization hold may appear on your bank statement as `Card Verify`.
22+
23+
There may be more than one `Card Verify` entry if your payment method is verified multiple times, such as after repeated payment attempts or separate checks for metered usage.
24+
25+
## When the funds are available again
26+
27+
{% data variables.product.company_short %} does not hold the funds. {% data variables.product.company_short %} initiates the release immediately, but your bank or card issuer may take a few days to make the funds available again.
28+
29+
### Contacting your bank or card issuer
30+
31+
If the funds remain unavailable after 10 business days, contact your bank or card issuer and ask about the status of the `Card Verify` authorization. Your bank or card issuer can tell you when the funds will be available again.
32+
33+
## What happens if the hold fails
34+
35+
If your payment method can't be verified, you may not be able to complete the purchase. You can contact your bank or card issuer for details or try a different payment method. For more information, see [AUTOTITLE](/billing/how-tos/troubleshooting/locked-account#unlocking-an-accounts-features-due-to-a-failed-authorization-hold).

‎content/billing/how-tos/troubleshooting/index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ versions:
88
ghes: '*'
99
children:
1010
- /declined-card
11+
- /authorization-holds
1112
- /locked-account
1213
- /azure-sub-connection
1314
- /enterprise-license-usage

‎content/code-security/how-tos/maintain-quality-code/fix-backlog-findings.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ For information on resolving {% data variables.code-quality.recent_suggestions %
3232

3333
You can resolve findings individually or assign multiple findings to {% data variables.product.prodname_copilot_short %}.
3434

35-
{% data reusables.code-quality.agentic-autofix-preview-note %}
36-
3735
### Resolving a single finding
3836

3937
{% data reusables.code-quality.dashboard-navigation-repo %}

‎content/code-security/how-tos/secure-at-scale/configure-enterprise-security/configure-specific-tools/allow-github-code-quality-in-enterprise.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ category:
1919
> [!NOTE]
2020
> {% data variables.product.prodname_code_quality_short %} has its own standalone enterprise policies. Access was previously controlled by your {% data variables.product.prodname_AS %} policies, and those existing settings are automatically applied to the new {% data variables.product.prodname_code_quality_short %} policies.
2121
22-
{% data reusables.code-quality.agentic-autofix-preview-note %}
23-
2422
When you allow {% data variables.product.prodname_code_quality_short %} for an organization and set the repository admin policy to **Allowed**, repository administrators can enable {% data variables.product.prodname_code_quality_short %} scans and all associated capabilities, including bulk agentic remediation with {% data variables.product.prodname_copilot_short %}. There is no separate policy for agentic remediation.
2523

2624
If you restrict {% data variables.product.prodname_code_quality_short %}, repository administrators cannot enable scans or use {% data variables.product.prodname_copilot_short %}-powered autofixes for code quality findings.

‎content/code-security/tutorials/improve-code-quality/raise-your-quality-rating.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ Once you've picked a rule, decide how to handle each finding:
6868
| Multiple findings for the same rule are legitimate. | Select up to 25 findings on a page, then click **Assign to {% data variables.product.prodname_copilot_short %}**. | {% data variables.product.prodname_copilot_short %} opens a pull request containing fixes for the selected findings. Assigning to {% data variables.product.prodname_copilot_short %} consumes {% data variables.product.prodname_ai_credits_short %}|
6969
| A finding doesn't apply. For example, it's in legacy code, an intentional pattern, or a false positive. | Click **Dismiss**. | The finding is considered resolved and removed from the list of open findings. |
7070

71-
{% data reusables.code-quality.agentic-autofix-preview-note %}
72-
7371
In our example, we assign the 40 "Overwritten property" findings to {% data variables.product.prodname_copilot_short %} in batches of up to 25. We review the resulting pull requests and merge them once the CI checks pass.
7472

7573
## Step 4: Communicate impact

0 commit comments

Comments
 (0)