Skip to content

Commit 9a1e159

Browse files
authored
no GHAS in public repo
1 parent 5da6308 commit 9a1e159

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

_labs/lab1.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,22 @@ Although Dependabot isn't part of the GitHub Advanced Security product suite, it
3737
### Exercise 2: Enable Code Scanning
3838

3939
1. Next, let's enable **Code Scanning with CodeQL**. These settings are also under the **Code security** settings page.
40-
2. Click the **Enable** button next to GitHub Advanced Security.
41-
3. A prompt will confirm that you want to **Enable GitHub Advanced Security for this repository** - click the button.
42-
- The prompt tells you how many GitHub Advanced Security licenses you would consume by enabling this feature - which is useful if you are an organization owner and want to ensure you have enough licenses for your organization.
43-
4. Underneath the GitHub Advanced Security | Code Scanning heading, click the **Set up** button in the **CodeQL analysis** row.
44-
5. There are two options: **Default** and **Advanced**. Select the **Default** option and review the settings.
40+
2. Underneath the Code Scanning heading, click the **Set up** button in the **CodeQL analysis** row.
41+
3. There are two options: **Default** and **Advanced**. Select the **Default** option and review the settings.
4542
- For this lab, we will use the **Default** setup which creates a managed Actions workflow (i.e. you will not see a file committed to the repo). You can use the Advanced option to manage your code scanning workflow as a GitHub Actions workflow YAML file committed to the repo. The **Default** option is a great option to get started quickly to enable code scanning in a repository without needing to commit any additional code.
4643
- By default, it will scan the JavaScript code, use the default CodeQL queries (for highest precision), and scan the default branch on push, pull request, and on a weekly schedule.
4744

4845
<details>
4946
<img src="images/lab-1-2-1.png"/>
5047
</details>
5148

52-
6. Click the **Enable CodeQL** button to save the settings and enable Code Scanning.
49+
4. Click the **Enable CodeQL** button to save the settings and enable Code Scanning.
5350

5451
<details>
5552
<img src="images/lab-1-2-2.png"/>
5653
</details>
5754

58-
6. Ensure that **Copilot Autofix** is enabled (in the **Code Scanning --> Tools** section).
55+
5. Ensure that **Copilot Autofix** is enabled (in the **Code Scanning --> Tools** section).
5956

6057
<details>
6158
<img src="images/lab-1-2-3.png"/>
@@ -64,7 +61,7 @@ Although Dependabot isn't part of the GitHub Advanced Security product suite, it
6461
> [!NOTE]
6562
> You don't need a Copilot license in order to use the Copilot features with GitHub Advanced Security. However, Copilot can certainly be helpful in resolving issues in your IDE by using Copilot chat to explain the vulnerability and how to fix it.
6663
67-
7. Optionally, configure the **Check runs failure threshold** - by default, a pull request will be blocked if there are any high or higher security alerts.
64+
6. Optionally, configure the **Check runs failure threshold** - by default, a pull request will be blocked if there are any high or higher security alerts.
6865

6966
### Exercise 3: Enable Secret Scanning
7067

0 commit comments

Comments
 (0)