Skip to content

Commit 53a11a9

Browse files
authored
Merge pull request #45485 from github/repo-sync
Repo sync
2 parents 053cb2d + a26c14c commit 53a11a9

11 files changed

Lines changed: 132 additions & 57 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# ---------------------------------------------------------------
1111
# To update the sha:
1212
# https://github.com/github/gh-base-image/pkgs/container/gh-base-image%2Fgh-base-noble
13-
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260731-094650-g61ba3829f@sha256:965152ebc8311c75bc9db9fc1c178a8c04718ca5d5521c30f55ba40ef229ff4d AS base
13+
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260811-222802-g1cf85b160@sha256:235f4854c8354b24fe8fefabf31fe57239723f2e4df4fb380d50f48844ab0737 AS base
1414

1515
# Install curl for Node install and determining the early access branch
1616
# Install git for cloning docs-early-access & translations repos

content/actions/reference/workflows-and-actions/contexts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ The `github` context contains information about the workflow run and the event t
181181
| `github.actor` | `string` | The username of the user that triggered the initial workflow run. If the workflow run is a re-run, this value may differ from `github.triggering_actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges. |
182182
| `github.actor_id` | `string` | {% data reusables.actions.actor_id-description %} |
183183
| `github.api_url` | `string` | The URL of the {% data variables.product.prodname_dotcom %} REST API. |
184+
| {% ifversion actions-artifacts-file %} |
185+
| `github.artifacts` | `string` | Path on the runner to the file that identifies workflow artifacts for the current step. Write one declaration per line to identify files or OCI digest references as workflow artifacts. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-commands#declaring-workflow-artifacts). |
186+
| `github.artifacts_list` | `string` | Path on the runner to a read-only file containing the aggregated workflow artifact metadata for the current job as JSON. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-commands#reading-workflow-artifacts). |
187+
| {% endif %} |
184188
| `github.base_ref` | `string` | The `base_ref` or target branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`. |
185189
| `github.env` | `string` | Path on the runner to the file that sets environment variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-commands#setting-an-environment-variable). |
186190
| `github.event` | `object` | The full event webhook payload. You can access individual properties of the event using this context. This object is identical to the webhook payload of the event that triggered the workflow run, and is different for each event. The webhooks for each {% data variables.product.prodname_actions %} event is linked in [AUTOTITLE](/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflow_call). For example, for a workflow run triggered by the [`push` event](/actions/reference/workflows-and-actions/events-that-trigger-workflows#push), this object contains the contents of the [push webhook payload](/webhooks/webhook-events-and-payloads#push). |

content/actions/reference/workflows-and-actions/variables.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ We strongly recommend that actions use variables to access the filesystem rather
3737
| `GITHUB_ACTOR` | The name of the person or app that initiated the workflow. For example, `octocat`. |
3838
| `GITHUB_ACTOR_ID` | {% data reusables.actions.actor_id-description %} |
3939
| `GITHUB_API_URL` | Returns the API URL. For example: `{% data variables.product.rest_url %}`. |
40+
| {% ifversion actions-artifacts-file %} |
41+
| `GITHUB_ARTIFACTS` | The path on the runner to the file that declares workflow artifacts for the current step. Write one declaration per line to identify files or OCI digest references as workflow artifacts. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-commands#declaring-workflow-artifacts). |
42+
| `GITHUB_ARTIFACTS_LIST` | The path on the runner to a read-only file that contains aggregated workflow artifact metadata for the current job as a JSON object. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-commands#reading-workflow-artifacts). |
43+
| {% endif %} |
4044
| `GITHUB_BASE_REF` | The name of the base ref or target branch of the pull request in a workflow run. This is only set when the event that triggers a workflow run is either `pull_request` or `pull_request_target`. For example, `main`. |
4145
| `GITHUB_ENV` | The path on the runner to the file that sets variables from workflow commands. The path to this file is unique to the current step and changes for each step in a job. For example, `/home/runner/work/_temp/_runner_file_commands/set_env_87406d6e-4979-4d42-98e1-3dab1f48b13a`. For more information, see [AUTOTITLE](/actions/reference/workflows-and-actions/workflow-commands#setting-an-environment-variable). |
4246
| `GITHUB_EVENT_NAME` | The name of the event that triggered the workflow. For example, `workflow_dispatch`. |

content/actions/reference/workflows-and-actions/workflow-commands.md

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,3 +959,98 @@ This example demonstrates how to add the user `$env:HOMEPATH/.local/bin` directo
959959
```
960960

961961
{% endpowershell %}
962+
963+
{% ifversion actions-artifacts-file %}
964+
965+
## Declaring workflow artifacts
966+
967+
Declare files or OCI references as workflow artifacts by writing one declaration per line to the `GITHUB_ARTIFACTS` environment file. Each step writes to a fresh, per-step file; the path is unique to that step.
968+
969+
Metadata about declared artifacts is collected across all steps in a job and exposed through the `GITHUB_ARTIFACTS_LIST` file.
970+
971+
Each line must be one of the following formats. Blank lines and lines starting with `#` are ignored.
972+
973+
* **File path**: A relative or absolute path to a file, optionally prefixed with `file://`. Relative paths are resolved against `GITHUB_WORKSPACE`. The path must point to an existing regular file (not a directory). The runner records the file's base name and its SHA-256 digest.
974+
* **OCI reference**: A reference in the form `REFERENCE@ALGORITHM:HEX`, optionally prefixed with `oci://`. `REFERENCE` is the image name (including optional tag), and `ALGORITHM` must be one of `sha256`, `sha384`, or `sha512`. `HEX` must be the full lowercase digest for the algorithm: 64 hexadecimal characters for `sha256`, 96 for `sha384`, or 128 for `sha512`.
975+
976+
Limits:
977+
978+
* The per-step command file is capped at 1MiB.
979+
* A job can accumulate up to 500 workflow artifacts across all steps.
980+
* If the same artifact is declared more than once with identical name and digest, it is deduplicated. Conflicting declarations (same name, different digest) produce an error.
981+
982+
{% bash %}
983+
984+
```bash copy
985+
echo "dist/my-binary" >> "$GITHUB_ARTIFACTS"
986+
```
987+
988+
To declare an OCI reference:
989+
990+
```bash copy
991+
echo "oci://ghcr.io/octocat/myapp:1.0.0@sha256:914b38d45a65e4263a179d9c2b09cc04dcbcaa8257fa85100cf42f9a3b408cfb" >> "$GITHUB_ARTIFACTS"
992+
```
993+
994+
{% endbash %}
995+
996+
{% powershell %}
997+
998+
```powershell copy
999+
"dist/my-binary" >> $env:GITHUB_ARTIFACTS
1000+
```
1001+
1002+
To declare an OCI reference:
1003+
1004+
```powershell copy
1005+
"oci://ghcr.io/octocat/myapp:1.0.0@sha256:914b38d45a65e4263a179d9c2b09cc04dcbcaa8257fa85100cf42f9a3b408cfb" >> $env:GITHUB_ARTIFACTS
1006+
```
1007+
1008+
{% endpowershell %}
1009+
1010+
## Reading workflow artifacts
1011+
1012+
Read the aggregated workflow artifact metadata declared by earlier steps in the current job from the `GITHUB_ARTIFACTS_LIST` environment file. This file is read-only and is updated by the runner after each step completes. It contains a UTF-8-encoded JSON object with the following structure:
1013+
1014+
```json
1015+
{
1016+
"version": 1,
1017+
"subjects": [
1018+
{
1019+
"name": "my-binary",
1020+
"digest": "sha256:abc123...",
1021+
"kind": "file"
1022+
},
1023+
{
1024+
"name": "ghcr.io/octocat/myapp:1.0.0",
1025+
"digest": "sha256:a1b2c3d4...",
1026+
"kind": "oci"
1027+
}
1028+
]
1029+
}
1030+
```
1031+
1032+
Each entry in the `subjects` array contains:
1033+
1034+
* `name`: The base name of the file or the OCI reference name (without the digest).
1035+
* `digest`: The `algorithm:hex` digest of the artifact.
1036+
* `kind`: Either `file` or `oci`.
1037+
1038+
Artifacts are sorted alphabetically by `name`.
1039+
1040+
{% bash %}
1041+
1042+
```bash copy
1043+
cat "$GITHUB_ARTIFACTS_LIST"
1044+
```
1045+
1046+
{% endbash %}
1047+
1048+
{% powershell %}
1049+
1050+
```powershell copy
1051+
Get-Content $env:GITHUB_ARTIFACTS_LIST
1052+
```
1053+
1054+
{% endpowershell %}
1055+
1056+
{% endif %}

content/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-governance.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ versions:
66
feature: enterprise-code-rulesets
77
permissions: Enterprise owners
88
shortTitle: Create rulesets
9+
redirect_from:
10+
- /enterprise-onboarding/govern-people-and-repositories/protect-branches
11+
- /enterprise-onboarding/feature-enhancements/about-rulesets
912
contentType: how-tos
1013
category:
1114
- Secure and govern your enterprise
15+
docsTeamMetrics:
16+
- enterprise-onboarding
1217
---
1318

1419
## Introduction
@@ -17,12 +22,14 @@ category:
1722

1823
To learn more, see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/about-rulesets).
1924

25+
As you onboard your enterprise, rulesets are how you apply consistent protections across many repositories at once, rather than configuring each repository individually.
26+
27+
If you have used **branch protection rules** on individual repositories, rulesets serve a similar goal at enterprise scale. Unlike a branch protection rule, which applies to a single repository, a ruleset can target many organizations, repositories, and branches at the same time, and you can set it to an evaluate status to preview its impact before you enforce it.
28+
2029
## Importing rulesets
2130

2231
To import a prebuilt ruleset created by {% data variables.product.company_short %}, see [`github/ruleset-recipes`](https://github.com/github/ruleset-recipes).
2332

24-
{% data reusables.repositories.import-a-ruleset-conceptual %} For more information, see [AUTOTITLE](/organizations/managing-organization-settings/managing-rulesets-for-repositories-in-your-organization#using-ruleset-history).
25-
2633
## How will I define where my ruleset applies?
2734

2835
Rulesets allow you to flexibly target the organizations, repositories, and branches where you want rules to apply.
@@ -62,9 +69,7 @@ The following are eligible for bypass access:
6269
* {% data variables.copilot.copilot_cloud_agent %}. For more information about {% data variables.copilot.copilot_cloud_agent %}, see [AUTOTITLE](/copilot/concepts/agents/cloud-agent/about-cloud-agent#limitations-in-copilot-cloud-agents-compatibility-with-other-features).
6370
{%- endif %}
6471

65-
1. To grant bypass permissions for the ruleset, in the "Bypass list" section, click **Add bypass**.
66-
67-
1. In the "Add bypass" modal dialog that appears, search for the role, team, or app you would like to grant bypass permissions, then select the role, team, or app from the "Suggestions" section and click Add Selected.
72+
1. In the "Bypass list" section, click **Add bypass**, then search for and select the role, team, or app you want to grant bypass permissions, and click **Add Selected**.
6873

6974
{% data reusables.repositories.rulesets-branch-tag-bypass-optional-step %}
7075

@@ -125,8 +130,7 @@ You can grant certain roles, teams, or apps bypass permissions as well as the ab
125130
* {% data variables.copilot.copilot_cloud_agent %}. For more information about {% data variables.copilot.copilot_cloud_agent %}, see [AUTOTITLE](/copilot/concepts/agents/cloud-agent/about-cloud-agent#limitations-in-copilot-cloud-agents-compatibility-with-other-features).
126131
{%- endif %}
127132

128-
1. To grant bypass permissions for the ruleset, in the "Bypass list" section, click **Add bypass**.
129-
1. In the "Add bypass" modal dialog that appears, search for the role, team, or app you would like to grant bypass permissions, then select the role, team, or app from the "Suggestions" section and click Add Selected.
133+
1. In the "Bypass list" section, click **Add bypass**, then search for and select the role, team, or app you want to grant bypass permissions, and click **Add Selected**.
130134

131135
### Choosing which organizations to target in your enterprise
132136

content/copilot/how-tos/use-copilot-agents/cloud-agent/integrate-cloud-agent-with-slack.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For information about additional {% data variables.product.prodname_copilot_shor
2525

2626
## Security considerations
2727

28-
When you @mention {% data variables.product.prodname_copilot_short %} in Slack, consider the following.
28+
Before you @mention the {% data variables.product.prodname_github_app %} in Slack, consider the following.
2929

3030
* {% data variables.product.prodname_copilot_short %} may perform write actions on your behalf, such as creating pull requests or issues, in addition to answering questions. {% data variables.product.prodname_copilot_short %} uses the permissions of your linked {% data variables.product.github %} account for any actions it takes.
3131
* {% data variables.copilot.copilot_cloud_agent %} will capture the entire thread as context for your request, understanding and implementing solutions based on the discussion. This context is stored in the pull request. If you want to limit the context, you can send a direct message to the {% data variables.product.prodname_github_app %} for Slack instead.
@@ -40,7 +40,7 @@ When you @mention {% data variables.product.prodname_copilot_short %} in Slack,
4040

4141
The first time you use the {% data variables.product.prodname_github_app %} in Slack, the app will prompt you to connect it to your {% data variables.product.github %} account and set a default repository. The default repository is where pull requests created by {% data variables.copilot.copilot_cloud_agent %} sessions will be opened.
4242

43-
1. In Slack, open a direct message with the {% data variables.product.prodname_github_app %} or mention {% data variables.product.prodname_copilot_short %} in a thread by typing `@{% data variables.product.prodname_copilot %}`.
43+
1. In Slack, open a direct message with the {% data variables.product.prodname_github_app %} or mention the {% data variables.product.prodname_github_app %} in a thread by typing `@{% data variables.product.github %}`.
4444
1. Send a prompt to {% data variables.copilot.copilot_cloud_agent %}. This can be a request to perform a task, or simply `login`.
4545
1. If asked to connect your {% data variables.product.github %} account, follow the instructions in {% data variables.product.prodname_copilot_short %}'s reply and authorize the app to access your {% data variables.product.github %} account.
4646
1. In the Slack message thread, click **Configure settings** to set a default repository for pull requests. You can change this repository later using the `settings` command.

content/enterprise-onboarding/govern-people-and-repositories/index.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

content/enterprise-onboarding/govern-people-and-repositories/protect-branches.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

content/enterprise-onboarding/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ journeyTracks:
3232
- href: '/admin/concepts/security-and-compliance/enterprise-policies'
3333
- href: '/admin/managing-accounts-and-repositories/managing-repositories-in-your-enterprise/managing-custom-properties-for-repositories-in-your-enterprise'
3434
- href: '/admin/managing-accounts-and-repositories/managing-repositories-in-your-enterprise/governing-how-people-use-repositories-in-your-enterprise'
35-
- href: '/enterprise-onboarding/govern-people-and-repositories/protect-branches'
35+
- href: '/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-code-governance'
3636
- href: '/admin/concepts/security-and-compliance/audit-log-for-an-enterprise'
3737
- id: 'github_apps'
3838
title: 'Automating processes with GitHub Apps'
@@ -43,11 +43,11 @@ journeyTracks:
4343
- href: '/apps/using-github-apps/installing-a-github-app-on-your-enterprise'
4444
versions:
4545
ghec: '*'
46-
children:
47-
- /govern-people-and-repositories
46+
children: []
4847
redirect_from:
4948
- /enterprise-onboarding/feature-enhancements
5049
- /enterprise-onboarding/getting-started-with-your-enterprise
50+
- /enterprise-onboarding/govern-people-and-repositories
5151
docsTeamMetrics:
5252
- enterprise-onboarding
5353
---

content/rest/guides/working-with-comments.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,9 @@ end
115115

116116
Note that this API call will retrieve single line comments, as well as comments made
117117
on the entire commit.
118+
119+
{% ifversion ghes > 3.21 %}
120+
121+
Creating commit comments can be enabled or disabled for a repository. Organization owners can configure the default setting for repositories in their organization. For more information, see [AUTOTITLE](/organizations/managing-organization-settings/managing-commit-comments-for-your-organization).
122+
123+
{% endif %}

0 commit comments

Comments
 (0)