Skip to content

Commit 5e8122f

Browse files
committed
Line edits
1 parent cd044a8 commit 5e8122f

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

learn-pr/github/configure-use-secret-scanning-github-repository/6-knowledge-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ quiz:
2828
explanation: "This answer is incorrect. Secret scanning is automatically enabled with default settings on public repositories. You can't change secret scanning settings on a public repository no matter what permissions you have on the repository."
2929
- content: "Where can you configure the recipients of secret scanning alerts?"
3030
choices:
31-
- content: "In the Code security and analysis settings of a repository"
31+
- content: "In the Advanced Security settings of a repository"
3232
isCorrect: true
33-
explanation: "Correct! You can configure the recipients of secret scanning alerts in the Access to alerts section of repository Code security and analysis settings."
33+
explanation: "Correct! You can configure the recipients of secret scanning alerts in the Access to alerts section of repository Advanced Security settings."
3434
- content: "In the Manage Access settings of a repository"
3535
isCorrect: false
3636
explanation: "This answer is incorrect. The Manage Access settings of a repository enable you to manage user permissions over the repository."

learn-pr/github/configure-use-secret-scanning-github-repository/includes/4-use-secret-scanning.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ The following sections cover how to create custom patterns for organizations and
3838

3939
Follow these steps to create a custom pattern for a private repository:
4040

41-
1. In your repository, navigate to **Settings > Code security and analysis**.
42-
1. Under **Secret scanning > Custom patterns**, select **New pattern**.
41+
1. In your repository, navigate to **Settings > Advanced Security**.
42+
1. Under **Secret protection**, select **New pattern**.
4343
1. Provide the following details for your custom pattern:
44-
- The name of the pattern
45-
- The pattern of the secret specified as Hyperscan regex
46-
- (Optional) **More options** provide other surrounding content or additional match requirements for the secret format
47-
- A sample test string to make sure your configuration is matching the patterns you expect
44+
- The name of the pattern.
45+
- The pattern of the secret specified as Hyperscan regex.
46+
- (Optional) **More options** provide other surrounding content or additional match requirements for the secret format.
47+
- A sample test string to make sure your configuration is matching the patterns you expect.
4848

4949
:::image type="content" source="../media/new-custom-pattern-octocat.png" alt-text="Screenshot of creating a new custom pattern for octocat token.":::
5050

@@ -57,13 +57,13 @@ Follow these steps to create a custom pattern for a private repository:
5757

5858
Follow the steps below to create a custom pattern for an organization:
5959

60-
1. In your organization, navigate to **Settings > Code security and analysis**.
61-
1. Under **Secret scanning > Custom patterns**, select **New pattern**.
60+
1. In your organization, navigate to **Settings > Advanced Security > Global Settings**.
61+
1. Under **Custom patterns**, select **New pattern**.
6262
1. Provide the following details for your custom pattern:
63-
- The name of the pattern
64-
- The pattern of the secret specified as Hyperscan regex
65-
- (Optional) **More options** provide other surrounding content or additional match requirements for the secret format
66-
- A sample test string to make sure your configuration is matching the patterns you expect
63+
- The name of the pattern.
64+
- The pattern of the secret specified as Hyperscan regex.
65+
- (Optional) **More options** provide other surrounding content or additional match requirements for the secret format.
66+
- A sample test string to make sure your configuration is matching the patterns you expect.
6767
1. When you're ready to test your new custom pattern, to identify matches in the repository without creating alerts, select **Save and dry run**.
6868
1. Select the repositories where you want to perform the dry run.
6969
- To perform the dry run across the entire organization, select **All repositories in the organization**.

learn-pr/github/configure-use-secret-scanning-github-repository/includes/7-summary.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Here are some links to more information on the topics we discussed in this modul
2121
- [Keeping secrets secure with secret scanning](https://docs.github.com/code-security/secret-scanning)
2222
- [Learning about GitHub security features](https://docs.github.com/code-security/getting-started/github-security-features)
2323
- [Learning about secret scanning](https://docs.github.com/code-security/secret-scanning/about-secret-scanning)
24-
- [Configuring secret scanning for your repositories](https://docs.github.com/code-security/secret-scanning/configuring-secret-scanning-for-your-repositories)
24+
- [Enabling secret scanning features](https://docs.github.com/code-security/secret-scanning/enabling-secret-scanning-features)
2525
- [Learning about the filter pattern cheat sheet](https://docs.github.com/actions/learn-github-actions/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet)
2626
- [Granting access to security alerts](https://docs.github.com/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository#granting-access-to-security-alerts)
2727
- [Managing alerts from secret scanning](https://docs.github.com/code-security/secret-scanning/managing-alerts-from-secret-scanning)
2828
- [Defining custom patterns for secret scanning](https://docs.github.com/code-security/secret-scanning/defining-custom-patterns-for-secret-scanning)
2929
- [Learning about Hyperscan Pattern Support](http://intel.github.io/hyperscan/dev-reference/compilation.html#pattern-support)
30-
- [Secret scanning patterns](https://docs.github.com/code-security/secret-scanning/secret-scanning-patterns)
30+
- [Supported Secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns)
-6.48 KB
Loading

0 commit comments

Comments
 (0)