Skip to content

Commit 16f560b

Browse files
Merge branch 'main' into gha-hardening-pull-request-target
2 parents da2130b + fda8d6d commit 16f560b

File tree

80 files changed

+1196
-1008
lines changed

Some content is hidden

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

80 files changed

+1196
-1008
lines changed

.devcontainer/devcontainer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@
5959
},
6060

6161
// Lifecycle commands
62-
"onCreateCommand": "npm ci",
62+
// Install dependencies then install Copilot CLI
63+
"onCreateCommand": "npm ci && npm config set \"//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN\" && npm config set \"@github:registry=https://npm.pkg.github.com/\" && npm install -g @github/copilot",
64+
// Start a web server and keep it running
6365
"postStartCommand": "nohup bash -c 'npm start &'",
64-
// Set the port to be public
66+
// Set port 4000 to be public
6567
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",
66-
68+
6769
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
6870
"remoteUser": "node",
6971

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
**17 September 2025**
44

5+
We added documentation for expanded features for reusing workflow configurations in GitHub Actions.
6+
7+
You can now use YAML anchors and aliases to reuse pieces of content in a workflow. See [YAML anchors and aliases](https://docs.github.com/en/actions/concepts/workflows-and-actions/reusing-workflow-configurations#yaml-anchors-and-aliases).
8+
9+
To keep the content focused on users' job-to-be-done, we simplified the procedures for [creating workflow templates for your organization](https://docs.github.com/en/actions/how-tos/reuse-automations/create-workflow-templates). In addition, we updated reference documentation for workflow templates with details on permissions, repository visibility rules, rules for the metadata file, and examples. See [Workflow templates](https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations#workflow-templates).
10+
11+
<hr>
12+
13+
**17 September 2025**
14+
515
You can now publish your Spark app as "read-only."
616

717
By default, data stored in Spark is shared across all users of the app. You can choose to publish your app as "read-only" if you want to showcase your app to others, but you don't want others to be able to edit or delete any stored data.

content/account-and-profile/how-tos/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ children:
1919
- /managing-security-and-analysis-features
2020
- /managing-your-tab-size-rendering-preference
2121
- /permission-levels-for-a-project-board-owned-by-a-personal-account
22+
- /manage-cookie-preferences
2223
- /managing-accessibility-settings
24+
- /prepare-for-job-change
2325
- /managing-access-to-your-personal-accounts-project-boards
2426
- /integrating-jira-with-your-personal-projects
2527
- /set-your-hiring-status

content/account-and-profile/tutorials/managing-your-cookie-preferences-for-githubs-enterprise-marketing-pages.md renamed to content/account-and-profile/how-tos/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/manage-cookie-preferences.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: Managing your cookie preferences for GitHub's enterprise marketing pages
3-
intro: 'You can control how {% data variables.product.company_short %} uses information from non-essential tracking cookies for enterprise marketing pages.'
2+
title: Manage cookie preferences
3+
intro: You can control how {% data variables.product.company_short %} uses information from non-essential tracking cookies for enterprise marketing pages.
44
versions:
55
fpt: '*'
66
ghes: '*'
@@ -11,15 +11,13 @@ shortTitle: Manage cookie preferences
1111
redirect_from:
1212
- /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/managing-your-cookie-preferences-for-githubs-enterprise-marketing-pages
1313
- /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/managing-your-cookie-preferences-for-githubs-enterprise-marketing-pages
14+
- /account-and-profile/tutorials/managing-your-cookie-preferences-for-githubs-enterprise-marketing-pages
15+
contentType: how-tos
1416
---
1517

16-
## About cookie preferences on enterprise marketing pages
17-
18-
{% data variables.product.company_short %} may use non-essential cookies on some enterprise marketing pages. You can customize how these cookies behave. For more information about how {% data variables.product.company_short %} uses cookies, see [AUTOTITLE](/free-pro-team@latest/site-policy/privacy-policies/github-privacy-statement).
19-
2018
## Changing your cookie preferences
2119

22-
You can customize how non-essential cookies behave on any {% data variables.product.company_short %} enterprise marketing page.
20+
You can customize how non-essential cookies behave on any {% data variables.product.company_short %} enterprise marketing page. For more information about how {% data variables.product.company_short %} uses cookies, see [AUTOTITLE](/free-pro-team@latest/site-policy/privacy-policies/github-privacy-statement).
2321

2422
1. Navigate to the {% data variables.product.company_short %} enterprise marketing page where you'd like to change your cookie preferences. For example, navigate to [{% data variables.product.company_short %} Resources](https://resources.github.com/).
2523
1. Scroll to the bottom of the page, then click **Manage Cookies**.
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
title: Prepare for job change
3+
intro: If you use your {% data variables.product.github %} account for both personal and work purposes, there are steps to follow when you leave your company or organization.
4+
redirect_from:
5+
- /articles/best-practices-for-leaving-your-company
6+
- /github/setting-up-and-managing-your-github-user-account/best-practices-for-leaving-your-company
7+
- /github/setting-up-and-managing-your-github-user-account/managing-user-account-settings/best-practices-for-leaving-your-company
8+
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/best-practices-for-leaving-your-company
9+
- /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-personal-account-settings/best-practices-for-leaving-your-company
10+
- /account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-personal-account/best-practices-for-leaving-your-company
11+
- /account-and-profile/reference/best-practices-for-leaving-your-company
12+
versions:
13+
fpt: '*'
14+
ghec: '*'
15+
topics:
16+
- Accounts
17+
shortTitle: Prepare for job change
18+
contentType: how-tos
19+
---
20+
21+
## Update your personal account information
22+
23+
1. Unverify your company email address by deleting it in your Email settings.
24+
25+
After removal, you can re-add this email without verifying to keep any associated commits linked to your account.
26+
27+
For more information, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/changing-your-primary-email-address).
28+
29+
1. Change your primary email address from your company email to your personal email.
30+
31+
For more information, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/changing-your-primary-email-address).
32+
33+
1. Verify your new primary email address.
34+
35+
For more information, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/verifying-your-email-address).
36+
37+
1. Update your {% data variables.product.github %} username if it contains references to your company or organization.
38+
39+
For more information, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/changing-your-github-username).
40+
41+
1. Review and update your two-factor authentication (2FA) methods to ensure they aren't linked to company resources:
42+
43+
* If you use a TOTP app on a company phone, transfer it to your personal device.
44+
* If you've registered company-owned security keys, remove them and add personal ones instead.
45+
* If you're using {% data variables.product.prodname_mobile %} on a company device, install it on your personal device.
46+
* Download fresh recovery codes and store them in a personal secure location.
47+
48+
For more information, see [AUTOTITLE](/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication).
49+
50+
## Leave organization memberships
51+
52+
> [!NOTE] Unless you're using a {% data variables.enterprise.prodname_managed_user %}, you'll still be able to access your personal account after leaving an organization.
53+
54+
1. If you're the organization owner, transfer ownership to another person before removing yourself.
55+
56+
For more information, see [AUTOTITLE](/organizations/managing-organization-settings/transferring-organization-ownership).
57+
58+
1. Remove yourself from the organization.
59+
60+
For more information, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/removing-yourself-from-an-organization).
61+
62+
## Clean up professional repository associations
63+
64+
1. Remove yourself as a collaborator from repositories owned by others.
65+
66+
For more information, see [AUTOTITLE](/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-access-to-your-personal-repositories/removing-yourself-from-a-collaborators-repository).
67+
68+
1. Stop watching work-related repositories to avoid unnecessary notifications.
69+
70+
To manage your watched repositories, visit https://github.com/watching.
71+
72+
1. Transfer repositories that you own that others may need to continue working on.
73+
74+
For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/transferring-a-repository).
75+
76+
1. Delete any work-related forks that belong to you.
77+
78+
Deleting a fork doesn't delete the upstream repository.
79+
80+
For more information, see [AUTOTITLE](/repositories/creating-and-managing-repositories/deleting-a-repository).
81+
82+
1. Delete local copies of your work repositories from your computer by running the following command:
83+
84+
```shell
85+
rm -rf WORK_DIRECTORY
86+
```
87+
88+
Replace `WORK_DIRECTORY` with the path to your work repository.

content/account-and-profile/reference/best-practices-for-leaving-your-company.md

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

content/account-and-profile/reference/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ children:
1111
- /personal-dashboard
1212
- /permission-levels-for-a-personal-account-repository
1313
- /profile-contributions-reference
14-
- /best-practices-for-leaving-your-company
1514
- /types-of-emails-github-sends
1615
- /email-addresses-reference
1716
- /personal-account-reference

content/account-and-profile/tutorials/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ topics:
1111
- Profiles
1212
children:
1313
- /personalize-your-profile
14-
- /managing-your-cookie-preferences-for-githubs-enterprise-marketing-pages
1514
- /using-your-github-profile-to-enhance-your-resume
1615
---
1716

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ env:
8383

8484
{% data variables.product.prodname_dotcom %} provides a way to create conditional logic in expressions using binary logical operators (`&&` and `||`). This pattern can be used to achieve similar functionality to the ternary operator (`?:`) found in many programming languages, while actually using only binary operators.
8585

86+
### Example
87+
88+
{% raw %}
89+
90+
```yaml
91+
env:
92+
MY_ENV_VAR: ${{ github.ref == 'refs/heads/main' && 'value_for_main_branch' || 'value_for_other_branches' }}
93+
```
94+
95+
{% endraw %}
96+
97+
In this example, we're using a combination of `&&` and `||` operators to set the value of the `MY_ENV_VAR` environment variable based on whether the {% data variables.product.prodname_dotcom %} reference is set to `refs/heads/main` or not. If it is, the variable is set to `value_for_main_branch`. Otherwise, it is set to `value_for_other_branches`. It is important to note that the first value after the `&&` must be truthy. Otherwise, the value after the `||` will always be returned.
98+
8699
## Functions
87100

88101
{% data variables.product.prodname_dotcom %} offers a set of built-in functions that you can use in expressions. Some functions cast values to a string to perform comparisons. {% data variables.product.prodname_dotcom %} casts data types to a string using these conversions:

content/admin/managing-accounts-and-repositories/managing-organizations-in-your-enterprise/removing-organizations-from-your-enterprise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ As part of the downgrade to the free plan:
4040
1. In the search bar, begin typing the organization's name until the organization appears in the search results.
4141
1. To the right of the organization's name, select the ... dropdown menu and click **Remove organization**.
4242

43-
![Expanded dropdown menu labelled with "...", for an organization. The "Remove organization" option outlined.](/assets/images/help/enterprises/remove-organization.png)
43+
![Expanded dropdown menu labeled with "...", for an organization. The "Remove organization" option outlined.](/assets/images/help/enterprises/remove-organization.png)
4444

4545
1. Review the warnings, decide whether to also remove users who will become unaffiliated, then click **Remove organization**.
4646

0 commit comments

Comments
 (0)