Skip to content

Commit de960a2

Browse files
authored
Merge pull request #42749 from github/repo-sync
Repo sync
2 parents 31a8590 + ca1ff04 commit de960a2

File tree

3 files changed

+5
-38
lines changed

3 files changed

+5
-38
lines changed

.github/workflows/check-broken-links-github-github.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ jobs:
4444
PORT: 4000
4545
ENABLED_LANGUAGES: en
4646
run: |
47-
48-
npm run start &
47+
npm run start-for-ci &
4948
sleep 5
50-
curl --retry-connrefused --retry 3 -I http://localhost:4000/
49+
curl --retry-connrefused --retry 5 -I http://localhost:4000/
5150
5251
- name: Run broken github/github link check
5352
run: |

content/code-security/how-tos/secure-your-secrets/prevent-future-leaks/enabling-push-protection-for-your-repository.md

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,44 +16,11 @@ redirect_from:
1616
- /code-security/secret-scanning/enabling-secret-scanning-features/enabling-push-protection-for-your-repository
1717
---
1818

19-
## About enabling push protection
20-
21-
To enable push protection for a repository, you must first enable {% ifversion ghas-products %}{% data variables.product.prodname_secret_protection %}{% else %}{% data variables.product.prodname_secret_scanning %}{% endif %}. You can then enable push protection in the repository's "{% data variables.product.UI_advanced_security %}" settings page following the steps outlined in this article.
22-
23-
{% ifversion secret-scanning-push-protection-for-users %}
24-
25-
You can additionally enable push protection for your own personal account, which prevents you from pushing secrets to _any_ public repository on {% data variables.product.github %}. For more information, see [AUTOTITLE](/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/push-protection-for-users).
26-
27-
{% endif %}
28-
29-
{% ifversion security-configurations %}
30-
31-
If you're an organization owner, you can enable push protection for multiple repositories at a time using {% data variables.product.prodname_security_configurations %}. For more information, see [AUTOTITLE](/code-security/securing-your-organization/introduction-to-securing-your-organization-at-scale/about-enabling-security-features-at-scale).
32-
33-
{% else %}
34-
35-
If you're an organization owner, you can enable push protection for multiple repositories at a time. For more information, see [AUTOTITLE](/code-security/getting-started/quickstart-for-securing-your-organization#enabling-security-features-in-your-organization).
36-
37-
{% endif %}
38-
39-
Organization owners, security managers, and repository administrators can also enable push protection for {% data variables.product.prodname_secret_scanning %} via the API. For more information, see [AUTOTITLE](/rest/repos#update-a-repository) and expand the "Properties of the `security_and_analysis` object" section.
40-
41-
{% ifversion security-configuration-enterprise-level %}
42-
43-
If your organization is owned by an enterprise account, an enterprise owner can also enable push protection at the enterprise level. For more information, see [AUTOTITLE](/admin/managing-code-security/securing-your-enterprise/creating-a-custom-security-configuration-for-your-enterprise).
44-
45-
{% elsif ghes < 3.16 %}
46-
47-
If your organization is owned by an enterprise account, an enterprise owner can also enable push protection at the enterprise level. For more information, see [AUTOTITLE](/admin/managing-code-security/managing-github-advanced-security-for-your-enterprise/managing-github-advanced-security-features-for-your-enterprise).
48-
49-
{% endif %}
50-
51-
## Enabling push protection for a repository
52-
5319
{% data reusables.repositories.navigate-to-repo %}
5420
{% data reusables.repositories.sidebar-settings %}
5521
{% data reusables.repositories.navigate-to-code-security-and-analysis %}{% ifversion ghas-products %}
56-
1. Under "{% data variables.product.prodname_secret_protection %}", to the right of "Push Protection", click **Enable**.{% else %}
22+
1. If you have not already enabled {% data variables.product.prodname_secret_protection %}, to the right of "{% data variables.product.prodname_secret_protection %}", click **Enable**.
23+
1. In the "{% data variables.product.prodname_secret_protection %}" section, to the right of "Push protection", click **Enable**.{% else %}
5724
{% data reusables.repositories.navigate-to-ghas-settings %}
5825
{% data reusables.advanced-security.secret-scanning-push-protection-repo %}{% endif %}
5926

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"show-action-deps": "echo 'Action Dependencies:' && rg '^[\\s|-]*(uses:.*)$' .github -I -N --no-heading -r '$1$2' | sort | uniq | cut -c 7-",
8888
"start": "cross-env NODE_ENV=development ENABLED_LANGUAGES=en nodemon src/frame/server.ts",
8989
"start-all-languages": "cross-env NODE_ENV=development tsx src/frame/server.ts",
90+
"start-for-ci": "cross-env NODE_ENV=production ENABLED_LANGUAGES=en tsx src/frame/server.ts",
9091
"start-for-playwright": "cross-env ROOT=src/fixtures/fixtures TRANSLATIONS_FIXTURE_ROOT=src/fixtures/fixtures/translations ENABLED_LANGUAGES=en,ja NODE_ENV=test tsx src/frame/server.ts",
9192
"symlink-from-local-repo": "tsx src/early-access/scripts/symlink-from-local-repo.ts",
9293
"sync-audit-log": "tsx src/audit-logs/scripts/sync.ts",

0 commit comments

Comments
 (0)