diff --git a/content/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions.md b/content/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions.md index b708f33886de..22ea1f600e9c 100644 --- a/content/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions.md +++ b/content/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions.md @@ -159,7 +159,7 @@ echo "::notice file=app.js,line=1,col=5,endColumn=7::Missing semicolon" {% powershell %} ```powershell copy -Write-Output "::notice file=app.js,line=1,col=5,endColumn=7::Missing semicolon" +Write-Output "::notice file=app.js,line=1,col=5,endColumn=7,title=YOUR-TITLE::Missing semicolon" ``` {% endpowershell %} @@ -179,7 +179,7 @@ Creates a warning message and prints the message to the log. {% data reusables.a {% bash %} ```bash copy -echo "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon" +echo "::warning file=app.js,line=1,col=5,endColumn=7,title=YOUR-TITLE::Missing semicolon" ``` {% endbash %} @@ -187,7 +187,7 @@ echo "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon" {% powershell %} ```powershell copy -Write-Output "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon" +Write-Output "::warning file=app.js,line=1,col=5,endColumn=7,title=YOUR-TITLE::Missing semicolon" ``` {% endpowershell %} @@ -207,7 +207,7 @@ Creates an error message and prints the message to the log. {% data reusables.ac {% bash %} ```bash copy -echo "::error file=app.js,line=1,col=5,endColumn=7::Missing semicolon" +echo "::error file=app.js,line=1,col=5,endColumn=7,title=YOUR-TITLE::Missing semicolon" ``` {% endbash %} @@ -215,7 +215,7 @@ echo "::error file=app.js,line=1,col=5,endColumn=7::Missing semicolon" {% powershell %} ```powershell copy -Write-Output "::error file=app.js,line=1,col=5,endColumn=7::Missing semicolon" +Write-Output "::error file=app.js,line=1,col=5,endColumn=7,title=YOUR-TITLE::Missing semicolon" ``` {% endpowershell %} diff --git a/src/github-apps/lib/config.json b/src/github-apps/lib/config.json index f96c8ac1509f..912aeac91565 100644 --- a/src/github-apps/lib/config.json +++ b/src/github-apps/lib/config.json @@ -60,5 +60,5 @@ "2022-11-28" ] }, - "sha": "5a9222e9dba71d8c7d75d8e780cf091f16a9f5a7" + "sha": "dd9a41e53082d946d5732c803cab3f9be31c1332" } \ No newline at end of file diff --git a/src/pagelist/middleware.ts b/src/pagelist/middleware.ts index 23656619a8c8..a4e2c11f7a28 100644 --- a/src/pagelist/middleware.ts +++ b/src/pagelist/middleware.ts @@ -30,16 +30,20 @@ router.get('/v1/:product@:version', (req: ExtendedRequest, res: Response) => { // we filter the permalinks to get only our target version const filteredPermalinks = keys.filter((key) => versionMatcher(key, `${product}@${version}`)) + const expression = /^\/en/ if (!filteredPermalinks.length) { res.status(400).type('text').send('Invalid version') return } + //right now we only need english permalinks perhaps we can use the language from the request in the future + const englishPermalinks = filteredPermalinks.filter((permalink) => expression.test(permalink)) + defaultCacheControl(res) // new line added at the end so `wc` works as expected with `-l` and `-w`. - res.type('text').send(filteredPermalinks.join('\n').concat('\n')) + res.type('text').send(englishPermalinks.join('\n').concat('\n')) }) router.get('/:product@:version', (req, res) => { diff --git a/src/pagelist/tests/pagelist.ts b/src/pagelist/tests/pagelist.ts index 142c5801845c..1a985758a5b2 100644 --- a/src/pagelist/tests/pagelist.ts +++ b/src/pagelist/tests/pagelist.ts @@ -61,4 +61,14 @@ describe.each(allVersionKeys)('pagelist api for %s', async (versionKey) => { expect(permalink).toMatch(expression) }) }) + + test('only returns urls that contain /en', async () => { + const expression = new RegExp(`^/en(/${nonEnterpriseDefaultVersion})?/?.*`) + res.body + .trim() + .split('\n') + .forEach((permalink: string) => { + expect(permalink).toMatch(expression) + }) + }) }) diff --git a/src/rest/data/fpt-2022-11-28/schema.json b/src/rest/data/fpt-2022-11-28/schema.json index f6adf708bf50..07058f48788a 100644 --- a/src/rest/data/fpt-2022-11-28/schema.json +++ b/src/rest/data/fpt-2022-11-28/schema.json @@ -154353,6 +154353,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "enabled", "secret_scanning_validity_checks": "enabled", + "secret_scanning_non_provider_patterns": "enabled", "private_vulnerability_reporting": "enabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/17", @@ -154377,6 +154378,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "enabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "enabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1326", @@ -154808,6 +154810,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -155050,6 +155053,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "enabled", "secret_scanning_validity_checks": "enabled", + "secret_scanning_non_provider_patterns": "enabled", "private_vulnerability_reporting": "enabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -155441,6 +155445,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -155864,6 +155869,7 @@ "secret_scanning": "disabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -156314,6 +156320,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -157345,6 +157352,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -349482,7 +349490,7 @@ } ], "previews": [], - "descriptionHTML": "

Warning

\n

\nDeprecation notice: The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use code security configurations instead. For more information, see the changelog.

\n
\n

Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see \"Managing security managers in your organization.\"

\n

The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the write:org scope to use this endpoint.

", + "descriptionHTML": "

Warning

\n

\nDeprecation notice: The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use code security configurations instead. For more information, see the changelog.

\n
\n

Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see \"Managing security managers in your organization.\"

\n

The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org, write:org, or repo scopes to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", diff --git a/src/rest/data/ghec-2022-11-28/schema.json b/src/rest/data/ghec-2022-11-28/schema.json index 591e505718ab..2610a2cfc3bb 100644 --- a/src/rest/data/ghec-2022-11-28/schema.json +++ b/src/rest/data/ghec-2022-11-28/schema.json @@ -165679,6 +165679,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "enabled", "secret_scanning_validity_checks": "enabled", + "secret_scanning_non_provider_patterns": "enabled", "private_vulnerability_reporting": "enabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/17", @@ -165703,6 +165704,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "enabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "enabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1326", @@ -166134,6 +166136,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -166376,6 +166379,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "enabled", "secret_scanning_validity_checks": "enabled", + "secret_scanning_non_provider_patterns": "enabled", "private_vulnerability_reporting": "enabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -166767,6 +166771,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -167190,6 +167195,7 @@ "secret_scanning": "disabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -167640,6 +167646,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -168671,6 +168678,7 @@ "secret_scanning": "enabled", "secret_scanning_push_protection": "disabled", "secret_scanning_validity_checks": "disabled", + "secret_scanning_non_provider_patterns": "disabled", "private_vulnerability_reporting": "disabled", "enforcement": "enforced", "url": "https://api.github.com/orgs/octo-org/code-security/configurations/1325", @@ -255975,6 +255983,7 @@ "secret_scanning_enabled_for_new_repositories": true, "secret_scanning_push_protection_enabled_for_new_repositories": true, "secret_scanning_push_protection_custom_link": "https://github.com/test-org/test-repo/blob/main/README.md", + "secret_scanning_non_provider_patterns_enabled_for_new_repositories": true, "secret_scanning_validity_checks_enabled": true }, "schema": { @@ -256026,6 +256035,13 @@ "https://github.com/test-org/test-repo/blob/main/README.md" ] }, + "secret_scanning_non_provider_patterns_enabled_for_new_repositories": { + "type": "boolean", + "description": "Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.", + "examples": [ + false + ] + }, "secret_scanning_validity_checks_enabled": { "type": "boolean", "description": "Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this enterprise.", @@ -256111,6 +256127,12 @@ "name": "secret_scanning_push_protection_custom_link", "in": "body", "description": "

The URL that will be displayed to contributors who are blocked from pushing a secret. For more information, see \"Protecting pushes with secret scanning.\"\nTo disable this functionality, set this field to null.

" + }, + { + "type": "boolean or null", + "name": "secret_scanning_non_provider_patterns_enabled_for_new_repositories", + "in": "body", + "description": "

Whether secret scanning of non-provider patterns is enabled for new repositories under this enterprise.

" } ], "progAccess": { @@ -256132,7 +256154,8 @@ "dependabot_alerts_enabled_for_new_repositories": true, "secret_scanning_enabled_for_new_repositories": true, "secret_scanning_push_protection_enabled_for_new_repositories": true, - "secret_scanning_push_protection_custom_link": "https://github.com/test-org/test-repo/blob/main/README.md" + "secret_scanning_push_protection_custom_link": "https://github.com/test-org/test-repo/blob/main/README.md", + "secret_scanning_non_provider_patterns_enabled_for_new_repositories": true }, "parameters": { "enterprise": "ENTERPRISE" @@ -256190,7 +256213,8 @@ "advanced_security_user_namespace", "dependabot_alerts", "secret_scanning", - "secret_scanning_push_protection" + "secret_scanning_push_protection", + "secret_scanning_non_provider_patterns" ] } }, @@ -369791,7 +369815,7 @@ } ], "previews": [], - "descriptionHTML": "

Warning

\n

\nDeprecation notice: The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use code security configurations instead. For more information, see the changelog.

\n
\n

Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see \"Managing security managers in your organization.\"

\n

The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the write:org scope to use this endpoint.

", + "descriptionHTML": "

Warning

\n

\nDeprecation notice: The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use code security configurations instead. For more information, see the changelog.

\n
\n

Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see \"Managing security managers in your organization.\"

\n

The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org, write:org, or repo scopes to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", @@ -585024,6 +585048,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -585043,10 +585068,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] @@ -585541,6 +585563,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -585560,10 +585583,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] diff --git a/src/rest/data/ghes-3.10-2022-11-28/schema.json b/src/rest/data/ghes-3.10-2022-11-28/schema.json index f71058912a15..bc4db723888d 100644 --- a/src/rest/data/ghes-3.10-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.10-2022-11-28/schema.json @@ -481204,6 +481204,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -481223,10 +481224,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] @@ -481721,6 +481719,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -481740,10 +481739,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] diff --git a/src/rest/data/ghes-3.11-2022-11-28/schema.json b/src/rest/data/ghes-3.11-2022-11-28/schema.json index d48c5bce8acb..9eba540a50a1 100644 --- a/src/rest/data/ghes-3.11-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.11-2022-11-28/schema.json @@ -495749,6 +495749,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -495768,10 +495769,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] @@ -496266,6 +496264,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -496285,10 +496284,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] diff --git a/src/rest/data/ghes-3.12-2022-11-28/schema.json b/src/rest/data/ghes-3.12-2022-11-28/schema.json index f7ce9449caff..f8c8527eb78a 100644 --- a/src/rest/data/ghes-3.12-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.12-2022-11-28/schema.json @@ -499231,6 +499231,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -499250,10 +499251,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] @@ -499748,6 +499746,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -499767,10 +499766,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] diff --git a/src/rest/data/ghes-3.13-2022-11-28/schema.json b/src/rest/data/ghes-3.13-2022-11-28/schema.json index e30cf5237298..d19ca5d6ab3a 100644 --- a/src/rest/data/ghes-3.13-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.13-2022-11-28/schema.json @@ -502313,6 +502313,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -502332,10 +502333,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] @@ -502830,6 +502828,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -502849,10 +502848,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] diff --git a/src/rest/data/ghes-3.14-2022-11-28/schema.json b/src/rest/data/ghes-3.14-2022-11-28/schema.json index 367f8e846be5..2a51d88c4932 100644 --- a/src/rest/data/ghes-3.14-2022-11-28/schema.json +++ b/src/rest/data/ghes-3.14-2022-11-28/schema.json @@ -322053,7 +322053,7 @@ } ], "previews": [], - "descriptionHTML": "

Warning

\n

\nDeprecation notice: The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use code security configurations instead. For more information, see the changelog.

\n
\n

Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see \"Managing security managers in your organization.\"

\n

The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the write:org scope to use this endpoint.

", + "descriptionHTML": "

Warning

\n

\nDeprecation notice: The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use code security configurations instead. For more information, see the changelog.

\n
\n

Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see \"Managing security managers in your organization.\"

\n

The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.

\n

OAuth app tokens and personal access tokens (classic) need the admin:org, write:org, or repo scopes to use this endpoint.

", "statusCodes": [ { "httpStatusCode": "204", @@ -505845,6 +505845,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -505864,10 +505865,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] @@ -506362,6 +506360,7 @@ "required": [ "member_id", "member_login", + "member_name", "member_email" ], "properties": { @@ -506381,10 +506380,7 @@ }, "member_name": { "description": "The user display name/profile name", - "type": [ - "string", - "null" - ], + "type": "string", "examples": [ "Mona Lisa" ] diff --git a/src/rest/lib/config.json b/src/rest/lib/config.json index 4aeade40eedc..ac7113b3bdc5 100644 --- a/src/rest/lib/config.json +++ b/src/rest/lib/config.json @@ -47,5 +47,5 @@ ] } }, - "sha": "5a9222e9dba71d8c7d75d8e780cf091f16a9f5a7" + "sha": "dd9a41e53082d946d5732c803cab3f9be31c1332" } \ No newline at end of file diff --git a/src/webhooks/lib/config.json b/src/webhooks/lib/config.json index 9fd1478ec907..56628839b4a0 100644 --- a/src/webhooks/lib/config.json +++ b/src/webhooks/lib/config.json @@ -1,3 +1,3 @@ { - "sha": "5a9222e9dba71d8c7d75d8e780cf091f16a9f5a7" + "sha": "dd9a41e53082d946d5732c803cab3f9be31c1332" } \ No newline at end of file