Skip to content

Commit a7c62a2

Browse files
authored
Merge branch 'main' into 2418-visibility-reminder
2 parents 4845e1a + 75c4fef commit a7c62a2

File tree

48 files changed

+611
-120
lines changed

Some content is hidden

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

48 files changed

+611
-120
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Make sure the Docker container still builds
2+
3+
name: Build Docker image
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches-ignore:
11+
- translations
12+
13+
env:
14+
CI: true
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Check out repo
21+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
22+
- name: Build the container
23+
run: docker build .
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Check for External Repo Sync PR
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
branches:
9+
- main
10+
11+
jobs:
12+
invalid-repo-sync-check:
13+
name: Close external Repo Sync PRs
14+
if: ${{ github.repository == 'github/docs' && github.ref == 'refs/heads/repo-sync' }}
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
18+
with:
19+
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
20+
script: |
21+
22+
const prCreator = context.payload.sender.login
23+
24+
// If the PR creator is the expected account, stop now
25+
if (prCreator === 'Octomerger') {
26+
return
27+
}
28+
29+
try {
30+
await github.teams.getMembershipForUserInOrg({
31+
org: 'github',
32+
team_slug: 'employees',
33+
username: prCreator
34+
})
35+
36+
// If the PR creator is a GitHub employee, stop now
37+
return
38+
} catch (err) {
39+
// An error will be thrown if the user is not a GitHub employee.
40+
// That said, we still want to proceed anyway!
41+
}
42+
43+
const pr = context.payload.pull_request
44+
const { owner, repo } = context.repo
45+
46+
// Close the PR and add the invalid label
47+
await github.issues.update({
48+
owner: owner,
49+
repo: repo,
50+
issue_number: pr.number,
51+
labels: ['invalid'],
52+
state: 'closed'
53+
})
54+
55+
// Comment on the PR
56+
await github.issues.createComment({
57+
owner: owner,
58+
repo: repo,
59+
issue_number: pr.number,
60+
body: "Please leave this `repo-sync` branch to the robots!\n\nI'm going to close this pull request now, but feel free to open a new issue or ask any questions in [discussions](https://github.com/github/docs/discussions)!"
61+
})

.github/workflows/test-translations.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
with:
1818
ref: translations # check out the 'translations' branch
1919

20+
- name: Check out tip of main
21+
run: git fetch --depth=1 origin main
22+
2023
- name: Setup node
2124
uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
2225
with:
@@ -41,6 +44,9 @@ jobs:
4144
- name: Run linter
4245
run: npx eslint .
4346

47+
- name: Lint translated content
48+
run: npm run lint-translation
49+
4450
- name: Check dependencies
4551
run: npm run check-deps
4652

.github/workflows/triage-stale-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
15-
stale-pr-message: 'This PR is stale because it has been open 7 days with no activity and will be automatically closed in 3 days. To keep this PR open, update the PR by adding a comment or pushing a commit.'
16-
days-before-stale: 7
15+
stale-pr-message: 'This PR is stale because it has been open 21 days with no activity and will be automatically closed in 10 days. To keep this PR open, update the PR by adding a comment or pushing a commit.'
16+
days-before-stale: 21
1717
days-before-close: 10
1818
stale-pr-label: 'stale'
1919
exempt-pr-labels: 'never-stale'

.github/workflows/triage-unallowed-contributions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
with:
7979
github-token: ${{secrets.GITHUB_TOKEN}}
8080
script: |
81-
constFilesArr = [
81+
const badFilesArr = [
8282
'translations/**',
8383
'lib/rest/static/**',
8484
'.github/workflows/**',

Dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@
77
# A temporary image that installs production-only dependencies
88

99
FROM node:14-alpine as installation
10+
RUN apk add --no-cache python make g++
1011
ENV NODE_ENV production
1112
WORKDIR /usr/src/docs
1213
COPY package*.json ./
1314

1415
# Install the project's dependencies
15-
RUN npm ci
16+
RUN npm ci --production
1617

1718
# --------------------------------------------------------------------------------
1819
# BUNDLE IMAGE
1920
# A temporary image that installs dependencies and builds the production-ready front-end bundles.
2021

2122
FROM node:14-alpine as bundles
23+
RUN apk add --no-cache python make g++
24+
ENV NODE_ENV production
2225
WORKDIR /usr/src/docs
2326
# Install the files used to create the bundles
2427
COPY package*.json ./
@@ -27,7 +30,8 @@ COPY stylesheets ./stylesheets
2730
COPY lib ./lib
2831
COPY webpack.config.js ./webpack.config.js
2932
# Install the project's dependencies and build the bundles
30-
RUN npm ci && npm run build
33+
RUN npm ci --production
34+
RUN npm run build
3135

3236
# --------------------------------------------------------------------------------
3337
# MAIN IMAGE
@@ -52,16 +56,23 @@ COPY --chown=node:node --from=bundles /usr/src/docs/dist /usr/src/docs/dist
5256
# We should always be running in production mode
5357
ENV NODE_ENV production
5458

59+
# Use Lunr instead of Algolia
60+
ENV USE_LUNR true
61+
5562
# Copy only what's needed to run the server
5663
COPY --chown=node:node assets ./assets
5764
COPY --chown=node:node content ./content
5865
COPY --chown=node:node data ./data
5966
COPY --chown=node:node includes ./includes
67+
COPY --chown=node:node layouts ./layouts
6068
COPY --chown=node:node lib ./lib
6169
COPY --chown=node:node middleware ./middleware
6270
COPY --chown=node:node translations ./translations
6371
COPY --chown=node:node server.js ./server.js
6472
COPY --chown=node:node package*.json ./
73+
COPY --chown=node:node feature-flags.json ./
6574

75+
EXPOSE 80
6676
EXPOSE 443
77+
EXPOSE 4000
6778
CMD ["node", "server.js"]
Loading

content/admin/configuration/configuring-data-encryption-for-your-enterprise.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For encryption in transit, {% data variables.product.product_name %} uses Transp
2020

2121
The key that you provide is stored in a hardware security module (HSM) in a key vault that {% data variables.product.company_short %} manages.
2222

23-
To configure your encryption key, use the REST API. There are a number of API endpoints, for example to check the status of encryption, update your encryption key, and delete your encryption key. Note that deleting your key will freeze your enterprise. For more information about the API endpoints, see "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation.
23+
To configure your encryption key, use the REST API. There are a number of API endpoints, for example to check the status of encryption, update your encryption key, and disable your encryption key. Note that disabling your key will freeze your enterprise. For more information about the API endpoints, see "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation.
2424

2525
### Adding or updating an encryption key
2626

@@ -48,24 +48,24 @@ Your 2048 bit RSA private key should be in PEM format, for example in a file cal
4848
curl -X GET http(s)://<em>hostname</em>/api/v3/enterprise/encryption/status/<em>request_id</em>
4949
```
5050

51-
### Deleting your encryption key
51+
### Disabling your encryption key
5252

53-
To freeze your enterprise, for example in the case of a breach, you can disable encryption at rest by deleting your encryption key.
53+
To freeze your enterprise, for example in the case of a breach, you can disable encryption at rest by marking your encryption key as disabled.
5454

55-
To unfreeze your enterprise after you've deleted your encryption key, contact support. For more information, see "[About {% data variables.contact.enterprise_support %}](/admin/enterprise-support/about-github-enterprise-support)."
56-
57-
1. To delete your key and disable encryption at rest, use the `DELETE /enterprise/encryption` endpoint.
55+
1. To disable your key and encryption at rest, use the `DELETE /enterprise/encryption` endpoint. This operation does not delete the key permanently.
5856

5957
```shell
6058
curl -X DELETE http(s)://<em>hostname</em>/api/v3/enterprise/encryption
6159
```
6260

63-
2. Optionally, check the status of the delete operation.
61+
2. Optionally, check the status of the delete operation. It takes approximately ten minutes to disable encryption at rest.
6462

6563
```shell
6664
curl -X GET http(s)://<em>hostname</em>/api/v3/enterprise/encryption/status/<em>request_id</em>
6765
```
6866

67+
To unfreeze your enterprise after you've disabled your encryption key, contact support. For more information, see "[About {% data variables.contact.enterprise_support %}](/admin/enterprise-support/about-github-enterprise-support)."
68+
6969
### Further reading
7070

7171
- "[Encryption at rest](/rest/reference/enterprise-admin#encryption-at-rest)" in the REST API documentation

content/desktop/contributing-and-collaborating-using-github-desktop/managing-tags.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ versions:
99

1010
### About tags in {% data variables.product.prodname_desktop %}
1111

12-
{% data variables.product.prodname_desktop %} allows you to create annotated tags. You can use a tag to mark an individual point in your repository's history, including a version number for a release. For more information about release tags, see "[About releases](/github/administering-a-repository/about-releases)."
12+
{% data variables.product.prodname_desktop %} allows you to create annotated tags. Tags are associated with commits, so you can use a tag to mark an individual point in your repository's history, including a version number for a release. For more information about release tags, see "[About releases](/github/administering-a-repository/about-releases)."
1313

1414
{% data reusables.desktop.tags-push-with-commits %}
1515

@@ -45,3 +45,7 @@ versions:
4545

4646
{% data reusables.desktop.history-tab %}
4747
{% data reusables.desktop.delete-tag %}
48+
49+
### Further reading
50+
51+
- "[Git Basics - Tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging)" in the Git documentation

content/developers/apps/refreshing-user-to-server-access-tokens.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Name | Type | Description
4242
{
4343
"access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a",
4444
"expires_in": "28800",
45-
"refresh_token": "r1.c1b4a2e77838347a7e420ce178f2e7c6912e1692",
45+
"refresh_token": "r1.c1b4a2e77838347a7e420ce178f2e7c6912e169246c34e1ccbf66c46812d16d5b1a9dc86a149873c",
4646
"refresh_token_expires_in": "15811200",
4747
"scope": "",
4848
"token_type": "bearer"

0 commit comments

Comments
 (0)