Skip to content

Commit d29866b

Browse files
committed
Merge branch 'main' into webhook-response-no-hydro
2 parents db4695d + c705ab2 commit d29866b

15 files changed

Lines changed: 198 additions & 7 deletions

File tree

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"formation": {
1313
"web": {
1414
"quantity": 1,
15-
"size": "standard-1x"
15+
"size": "standard-2x"
1616
}
1717
}
1818
}
13.6 KB
Loading
-7.71 KB
Loading
-23.2 KB
Loading

content/actions/guides/building-and-testing-net.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
runs-on: ubuntu-latest
4545
strategy:
4646
matrix:
47-
dotnet-version: [ '2.2.103', '3.0', '3.1.x' ]
47+
dotnet-version: ['3.0', '3.1.x', '5.0.x' ]
4848

4949
steps:
5050
- uses: actions/checkout@v2
@@ -81,7 +81,7 @@ jobs:
8181
runs-on: ubuntu-latest
8282
strategy:
8383
matrix:
84-
dotnet: [ '2.2.103', '3.0', '3.1.x' ]
84+
dotnet: [ '3.0', '3.1.x', '5.0.x' ]
8585
8686
steps:
8787
- uses: actions/checkout@v2
@@ -201,7 +201,7 @@ jobs:
201201
runs-on: ubuntu-latest
202202
strategy:
203203
matrix:
204-
dotnet-version: [ '2.2.103', '3.0', '3.1.x' ]
204+
dotnet-version: [ '3.0', '3.1.x', '5.0.x' ]
205205
206206
steps:
207207
- uses: actions/checkout@v2

content/code-security/security-advisories/editing-a-security-advisory.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ You can credit people who helped discover, report, or fix a security vulnerabili
1717

1818
If someone accepts credit, the person's username appears in the "Credits" section of the security advisory. Anyone with read access to the repository can see the advisory and the people who accepted credit for it.
1919

20+
If you believe you should be credited for a security advisory, please contact the person who created the advisory and ask them to edit the advisory to include your credit. Only the creator of the advisory can credit you, so please don't contact GitHub Support about credits for security advisories.
21+
2022
### Editing a security advisory
2123

2224
{% data reusables.repositories.navigate-to-repo %}

content/developers/overview/managing-deploy-keys.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,36 @@ You can then use the hostname's alias to interact with the repository using SSH,
113113
$ git clone git@{% if currentVersion == "free-pro-team@latest" %}github.com{% else %}my-GHE-hostname.com{% endif %}-repo-1:OWNER/repo-1.git
114114
```
115115
116+
### Server-to-server tokens
117+
118+
If your server needs to access repositories across one or more organizations, you can use a GitHub App to define the access you need, and then generate _tightly-scoped_, _server-to-server_ tokens from that GitHub App. The server-to-server tokens can be scoped to single or multiple repositories, and can have fine-grained permissions. For example, you can generate a token with read-only access to a repository's contents.
119+
120+
Since GitHub Apps are a first class actor on {% data variables.product.product_name %}, the server-to-server tokens are decoupled from any GitHub user, which makes them comparable to "service tokens". Additionally, server-to-server tokens have dedicated rate limits that scale with the size of the organizations that they act upon. For more information, see [Rate limits for Github Apps](/developers/apps/rate-limits-for-github-apps).
121+
122+
##### Pros
123+
124+
- Tightly-scoped tokens with well-defined permission sets and expiration times (1 hour, or less if revoked manually using the API).
125+
- Dedicated rate limits that grow with your organization.
126+
- Decoupled from GitHub user identities, so they do not consume any licensed seats.
127+
- Never granted a password, so cannot be directly signed in to.
128+
129+
##### Cons
130+
131+
- Additional setup is needed to create the GitHub App.
132+
- Server-to-server tokens expire after 1 hour, and so need to be re-generated, typically on-demand using code.
133+
134+
##### Setup
135+
136+
1. Determine if your GitHub App should be public or private. If your GitHub App will only act on repositories within your organization, you likely want it private.
137+
1. Determine the permissions your GitHub App requires, such as read-only access to repository contents.
138+
1. Create your GitHub App via your organization's settings page. For more information, see [Creating a GitHub App](/developers/apps/creating-a-github-app).
139+
1. Note your GitHub App `id`.
140+
1. Generate and download your GitHub App's private key, and store this safely. For more information, see [Generating a private key](/developers/apps/authenticating-with-github-apps#generating-a-private-key).
141+
1. Install your GitHub App on the repositories it needs to act upon, optionally you may install the GitHub App on all repositories in your organization.
142+
1. Identify the `installation_id` that represents the connection between your GitHub App and the organization repositories it can access. Each GitHub App and organization pair have at most a single `installation_id`. You can identify this `installation_id` via [Get an organization installation for the authenticated app](/rest/reference/apps#get-an-organization-installation-for-the-authenticated-app). This requires authenticating as a GitHub App using a JWT, for more information see [Authenticating as a GitHub App](/developers/apps/authenticating-with-github-apps#authenticating-as-a-github-app).
143+
1. Generate a server-to-server token using the corresponding REST API endpoint, [Create an installation access token for an app](/rest/reference/apps#create-an-installation-access-token-for-an-app). This requires authenticating as a GitHub App using a JWT, for more information see [Authenticating as a GitHub App](/developers/apps/authenticating-with-github-apps#authenticating-as-a-github-app), and [Authenticating as an installation](/developers/apps/authenticating-with-github-apps#authenticating-as-an-installation).
144+
1. Use this server-to-server token to interact with your repositories, either via the REST or GraphQL APIs, or via a Git client.
145+
116146
### Machine users
117147
118148
If your server needs to access multiple repositories, you can create a new {% data variables.product.product_name %} account and attach an SSH key that will be used exclusively for automation. Since this {% data variables.product.product_name %} account won't be used by a human, it's called a _machine user_. You can add the machine user as a [collaborator][collaborator] on a personal repository (granting read and write access), as an [outside collaborator][outside-collaborator] on an organization repository (granting read, write, or admin access), or to a [team][team] with access to the repositories it needs to automate (granting the permissions of the team).

content/github/administering-a-repository/managing-releases-in-a-repository.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ You can choose whether {% data variables.large_files.product_name_long %} ({% da
5252
![Providing a DMG with the Release](/assets/images/help/releases/releases_adding_binary.gif)
5353
8. To notify users that the release is not ready for production and may be unstable, select **This is a pre-release**.
5454
![Checkbox to mark a release as prerelease](/assets/images/help/releases/prerelease_checkbox.png)
55+
{%- if currentVersion == "free-pro-team@latest" %}
56+
1. Optionally, select **Create a discussion for this release**, then select the **Category** drop-down menu and click a category for the release discussion.
57+
![Checkbox to create a release discussion and drop-down menu to choose a category](/assets/images/help/releases/create-release-discussion.png)
58+
{%- endif %}
5559
9. If you're ready to publicize your release, click **Publish release**. To work on the release later, click **Save draft**.
5660
![Publish release and Draft release buttons](/assets/images/help/releases/release_buttons.png)
5761

content/github/getting-started-with-github/keyboard-shortcuts.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Below is a list of some of the available keyboard shortcuts.
5252
|<kbd>control z</kbd> or <kbd>command z</kbd> | Undo
5353
|<kbd>control y</kbd> or <kbd>command y</kbd> | Redo
5454
|<kbd>cmd + shift + p</kbd> | Toggles between the **Edit file** and **Preview changes** tabs
55+
|<kbd>control s</kbd> or <kbd>command s</kbd> | Write a commit message
5556

5657
For more keyboard shortcuts, see the [CodeMirror documentation](https://codemirror.net/doc/manual.html#commands).
5758

content/github/managing-subscriptions-and-notifications-on-github/configuring-notifications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ You can configure notifications for a repository on the repository page, or on y
7676
#### About custom notifications
7777
{% data reusables.notifications-v2.custom-notifications-beta %}
7878
You can customize notifications for a repository, for example, you can choose to only be notified when updates to one or more types of events (issues, pull request, releases, discussions) happen within a repository, or ignore all notifications for a repository.
79-
{% endif %} For more information, see "[Viewing your subscriptions](/github/managing-subscriptions-and-notifications-on-github/viewing-your-subscriptions#configuring-your-watch-settings-for-an-individual-repository)."
79+
{% endif %} For more information, see "[Configuring your watch settings for an individual repository](#configuring-your-watch-settings-for-an-individual-repository)" below.
8080

8181
#### Participating in conversations
8282
Anytime you comment in a conversation or when someone @mentions your username, you are _participating_ in a conversation. By default, you are automatically subscribed to a conversation when you participate in it. You can unsubscribe from a conversation you've participated in manually by clicking **Unsubscribe** on the issue or pull request or through the **Unsubscribe** option in the notifications inbox.

0 commit comments

Comments
 (0)