Skip to content

Commit 59b443c

Browse files
authored
Merge pull request #38064 from github/repo-sync
Repo sync
2 parents 6a0e11f + 4b9c237 commit 59b443c

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

content/admin/configuring-settings/configuring-network-settings/configuring-built-in-firewall-rules.md

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ We do not recommend customizing UFW as it can complicate some troubleshooting is
7878
sudo cp -r /etc/ufw ~/ufw.backup
7979
```
8080

81+
> [!WARNING]
82+
> If you're upgrading your server with an upgrade package you will need to back up your firewall rules to a remote location before installing the upgrade. When using an upgrade package, the root partition is replaced and any custom files that were created will be lost. This doesn’t happen when you upgrade your server using a hotpatch.
83+
8184
After you upgrade {% data variables.location.product_location %}, you must reapply your custom firewall rules. We recommend that you create a script to reapply your firewall custom rules.
8285

8386
## Restoring the default firewall rules
@@ -86,6 +89,8 @@ If something goes wrong after you change the firewall rules, you can reset the r
8689

8790
> [!WARNING]
8891
> If you didn't back up the original rules before making changes to the firewall, visit {% data variables.contact.contact_ent_support %} and contact us for further assistance.
92+
>
93+
> If you backed up your original rules to a remote location prior to an upgrade, they will need to be transferred back to your server before they can be restored.
8994
9095
{% data reusables.enterprise_installation.ssh-into-instance %}
9196

content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/troubleshooting-rules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If a branch or tag is targeted by rules restricting the metadata of commits, you
2121

2222
When utilizing push rulesets, a maximum of 1000 reference updates are allowed per push. If your push exceeds this limit, it will be rejected. For more information see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/creating-rulesets-for-a-repository#creating-a-push-ruleset).
2323

24-
Additonally, push rulesets apply to the "Create a blob" and "Create or update file contents" endpoints in the REST API. See [AUTOTITLE](/rest/git/blobs?apiVersion=2022-11-28#create-a-blob) and [AUTOTITLE](/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents).
24+
Additonally, push rulesets apply to the "Create a blob", "Create a tree", and "Create or update file contents" endpoints in the REST API. See [AUTOTITLE](/rest/git/blobs?apiVersion=2022-11-28#create-a-blob), [AUTOTITLE](/rest/git/trees?apiVersion=2022-11-28#create-a-tree), and [AUTOTITLE](/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents).
2525

2626
## Troubleshooting required status checks
2727

content/rest/using-the-rest-api/best-practices-for-using-the-rest-api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ Similarly, you should not try to manually construct pagination queries. Instead,
6969

7070
## Use conditional requests if appropriate
7171

72-
Most endpoints return an `etag` header, and many endpoints return a `last-modified` header. You can use the values of these headers to make conditional `GET` requests. If the response has not changed, you will receive a `304 Not Modified` response. Making a conditional request does not count against your primary rate limit if a `304` response is returned.
72+
Most endpoints return an `etag` header, and many endpoints return a `last-modified` header. You can use the values of these headers to make conditional `GET` requests. If the response has not changed, you will receive a `304 Not Modified` response. Making a conditional request does not count against your primary rate limit if a `304` response is returned and the request was made while correctly authorized with an `Authorization` header.
7373

7474
For example, if a previous request returned an `etag` header value of `644b5b0155e6404a9cc4bd9d8b1ae730`, you can use the `if-none-match` header in a future request:
7575

7676
```shell
77-
curl {% data variables.product.rest_url %}/meta --include --header 'if-none-match: "644b5b0155e6404a9cc4bd9d8b1ae730"'
77+
curl -H "Authorization: Bearer YOUR-TOKEN" {% data variables.product.rest_url %}/meta --include --header 'if-none-match: "644b5b0155e6404a9cc4bd9d8b1ae730"'
7878
```
7979

8080
For example, if a previous request returned a `last-modified` header value of `Wed, 25 Oct 2023 19:17:59 GMT`, you can use the `if-modified-since` header in a future request:
8181

8282
```shell
83-
curl {% data variables.product.rest_url %}/repos/github/docs --include --header 'if-modified-since: Wed, 25 Oct 2023 19:17:59 GMT'
83+
curl -H "Authorization: Bearer YOUR-TOKEN" {% data variables.product.rest_url %}/repos/github/docs --include --header 'if-modified-since: Wed, 25 Oct 2023 19:17:59 GMT'
8484
```
8585

8686
Conditional requests for unsafe methods, such as `POST`, `PUT`, `PATCH`, and `DELETE` are not supported unless otherwise noted in the documentation for a specific endpoint.

data/features/dependabot-updates-deprecate-rerun-failed-jobs.yml

-5
This file was deleted.

0 commit comments

Comments
 (0)