Skip to content

Commit a7ad141

Browse files
authored
Merge branch 'main' into update-dh-desktop-supported-editors
2 parents acbb558 + 40313bf commit a7ad141

File tree

384 files changed

+9268
-4322
lines changed

Some content is hidden

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

384 files changed

+9268
-4322
lines changed
Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,20 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/javascript-node
3-
// -
41
{
5-
"name": "docs.github.com",
6-
"build": {
7-
"dockerfile": "Dockerfile",
8-
// Update 'VARIANT' to pick a Node version: 12, 14, 16
9-
"args": { "VARIANT": "16" }
10-
},
2+
"name": "test",
113

12-
// Set *default* container specific settings.json values on container create.
134
"settings": {
14-
"terminal.integrated.shell.linux": "/bin/bash",
15-
"cSpell.language": ",en"
5+
"terminal.integrated.shell.linux": "/bin/zsh",
166
},
177

18-
// Install features. Type 'feature' in the VS Code command palette for a full list.
19-
"features": {
20-
"git-lfs": "latest"
21-
},
22-
238
// Visual Studio Code extensions which help authoring for docs.github.com.
249
"extensions": [
2510
"dbaeumer.vscode-eslint",
26-
"sissel.shopify-liquid",
27-
"davidanson.vscode-markdownlint",
28-
"bierner.markdown-preview-github-styles",
29-
"streetsidesoftware.code-spell-checker",
30-
"alistairchristie.open-reusables"
11+
"sissel.shopify-liquid"
3112
],
3213

3314
// Use 'forwardPorts' to make a list of ports inside the container available locally.
34-
"forwardPorts": [4000],
15+
"forwardPorts": [5000],
3516

3617
// Use 'postCreateCommand' to run commands after the container is created.
37-
//"postCreateCommand": "git lfs pull && npm ci",
38-
"postCreateCommand": "echo This file was created by the postCreateCommand in the custom devcontainer.json > aaa-TEST.txt",
39-
40-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
41-
"remoteUser": "node"
18+
"postCreateCommand": "echo test > aaa-TEST.txt"
4219

4320
}

.github/workflows/optimize-images.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ permissions:
1616

1717
jobs:
1818
optimize-images-on-pr:
19-
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
19+
# We can't make commits on forks
20+
if: github.repository == 'github/docs-internal'
2021
runs-on: ubuntu-latest
2122
steps:
2223
- name: Check out repo on head ref
77.5 KB
Loading
462 KB
Loading
250 KB
Loading
168 KB
Loading

components/rest/RestReferencePage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ export const RestReferencePage = ({
127127
as="li"
128128
key={item.contents}
129129
className={item.platform}
130-
sx={{ listStyle: 'none', padding: '2px' }}
130+
sx={{
131+
listStyle: 'none',
132+
padding: '2px',
133+
':hover': {
134+
bg: 'var(--color-canvas-inset)',
135+
},
136+
}}
131137
>
132138
<div className={cx('lh-condensed d-block width-full')}>
133139
<div className="d-inline-flex" dangerouslySetInnerHTML={{ __html: item.contents }} />

components/ui/MiniTocs/MiniTocs.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,18 @@ const renderTocItem = (item: MiniTocItem) => {
1616
as="li"
1717
key={item.contents}
1818
className={item.platform}
19-
sx={{ listStyle: 'none', padding: '2px' }}
19+
sx={{
20+
listStyle: 'none',
21+
padding: '2px',
22+
':hover': {
23+
bg: 'var(--color-canvas-inset)',
24+
},
25+
'ul > li': {
26+
':hover': {
27+
bg: 'var(--color-neutral-subtle)',
28+
},
29+
},
30+
}}
2031
>
2132
<div className={cx('lh-condensed d-block width-full')}>
2233
<div dangerouslySetInnerHTML={{ __html: item.contents }} />

content/actions/hosting-your-own-runners/autoscaling-with-self-hosted-runners.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ The {% data variables.product.prodname_actions %} service will then automaticall
5858

5959
By default, self-hosted runners will automatically perform a software update whenever a new version of the runner software is available. If you use ephemeral runners in containers then this can lead to repeated software updates when a new runner version is released. Turning off automatic updates allows you to update the runner version on the container image directly on your own schedule.
6060

61-
If you want to turn off automatic software updates and install software updates yourself, you can specify the `--disableupdate` parameter when starting the runner. For example:
61+
To turn off automatic software updates and install software updates yourself, specify the `--disableupdate` flag when registering your runner using `config.sh`. For example:
6262

6363
```shell
64-
./run.sh --disableupdate
64+
./config.sh --url <em>https://github.com/octo-org</em> --token <em>example-token</em> --disableupdate
6565
```
6666

6767
If you disable automatic updates, you must still update your runner version regularly. New functionality in {% data variables.product.prodname_actions %} requires changes in both the {% data variables.product.prodname_actions %} service _and_ the runner software. The runner may not be able to correctly process jobs that take advantage of new features in {% data variables.product.prodname_actions %} without a software update.

content/actions/security-guides/security-hardening-for-github-actions.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ To help prevent accidental disclosure, {% data variables.product.product_name %}
4848
- **Consider requiring review for access to secrets**
4949
- You can use required reviewers to protect environment secrets. A workflow job cannot access environment secrets until approval is granted by a reviewer. For more information about storing secrets in environments or requiring reviews for environments, see "[Encrypted secrets](/actions/reference/encrypted-secrets)" and "[Using environments for deployment](/actions/deployment/using-environments-for-deployment)."
5050

51+
{% warning %}
52+
53+
**Warning**: Any user with write access to your repository has read access to all secrets configured in your repository. Therefore, you should ensure that the credentials being used within workflows have the least privileges required.
54+
55+
{% endwarning %}
56+
5157
## Using `CODEOWNERS` to monitor changes
5258

5359
You can use the `CODEOWNERS` feature to control how changes are made to your workflow files. For example, if all your workflow files are stored in `.github/workflows`, you can add this directory to the code owners list, so that any proposed changes to these files will first require approval from a designated reviewer.
@@ -300,7 +306,7 @@ For example, you can use the audit log to track the `org.update_actions_secret`
300306
![Audit log entries](/assets/images/help/repository/audit-log-entries.png)
301307

302308
The following tables describe the {% data variables.product.prodname_actions %} events that you can find in the audit log. For more information on using the audit log, see
303-
"[Reviewing the audit log for your organization](/organizations/keeping-your-organization-secure/reviewing-the-audit-log-for-your-organization#searching-the-audit-log)."
309+
"[Reviewing the audit log for your organization](/organizations/keeping-your-organization-secure/reviewing-the-audit-log-for-your-organization#searching-the-audit-log)" and "[Reviewing audit logs for your enterprise](/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise)."
304310

305311
{% ifversion fpt or ghec %}
306312
### Events for environments
@@ -318,6 +324,7 @@ The following tables describe the {% data variables.product.prodname_actions %}
318324
| Action | Description
319325
|------------------|-------------------
320326
| `repo.actions_enabled` | Triggered when {% data variables.product.prodname_actions %} is enabled for a repository. Can be viewed using the UI. This event is not visible when you access the audit log using the REST API. For more information, see "[Using the REST API](#using-the-rest-api)."
327+
| `repo.update_actions_access_settings` | Triggered when the setting to control how your repository is used by {% data variables.product.prodname_actions %} workflows in other repositories is changed.
321328
{% endif %}
322329

323330
### Events for secret management

0 commit comments

Comments
 (0)