You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 💡 Tip: Clicking the **Show paths** link will provide additional insights about the alert's data flow from user input (source), through the application, and when it is acted on (sink).
45
49
46
50
### ⌨️ Activity: View the CodeQL scanning logs
47
51
48
52
1. In the top navigation, select the **Actions** tab.
49
53
50
-
1. Click on the **CodeQL Setup** workflow run entry to open a page showing more details.
54
+
1. In the left navigation, select the **CodeQL** entry to filter the workflow runs.
1. With the pull request started and CodeQL scan finished, Mona will check your progress and share the next steps.
57
73
58
74
> [!TIP]
59
75
> Check out the [Triage code scanning alerts in pull requests](https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/triaging-code-scanning-alerts-in-pull-requests) page to learn more about integration of code scanning into pull requests.
60
-
61
-
<!-- > 💡 Tip: Clicking the **Show paths** link will provide additional insights about the alert's data flow from user input (source), through the application, and when it is acted on (sink). -->
Copy file name to clipboardExpand all lines: .github/steps/3-step.md
+37-15Lines changed: 37 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,43 +20,65 @@ Many of the patterns CodeQL scans for come from existing databases of vulnerabil
20
20
21
21
The **Common Weakness Enumeration (CWE)** is a category system for hardware and software weaknesses and vulnerabilities. Think of it as a way to describe and categorize security issues in an application's source code. For more information on CWEs, see the Wikipedia article [Common Weakness Enumeration](https://en.wikipedia.org/wiki/Common_Weakness_Enumeration).
22
22
23
-
### ⌨️ Activity: Review an Alert
23
+
### ⌨️ Activity: View existing alerts
24
24
25
25
1. In the top navigation, select the **Security** tab.
26
26
27
27
1. In the left navigation, find the **Vulnerability alerts** area and select the **Code scanning** option.
28
28
29
-
1. (Optional) Use the filters and search bar to explore the open and closed security alerts, including from the CodeQL scan.
29
+
- Notice that there are not open alerts. This is expected since the vulnerable code on a pull request has not been merged yet.
30
+
31
+
1. Return to the recently created pull request. Ignore the failed check and click the **Merge pull request** button.
Copy file name to clipboardExpand all lines: .github/steps/4-step.md
+16-12Lines changed: 16 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,11 @@ Finally, let's use the information provided by CodeQL to better understand the v
4
4
5
5
### ⌨️ Activity: Resolve an open alert
6
6
7
-
1.In the top navigation, select the **Security** tab.
7
+
1.Review the open alert and become familiar with the recommended changes.
8
8
9
-
1. In the left navigation, find the **Vulnerability alerts** area and select the **Code scanning**option.
9
+
1. In the top navigation, select the **Code**tab.
10
10
11
-
1. Review the open alert and review the recommended changes.
12
-
13
-
1. In the top navigation, select the **Code** tab. Ensure you are on the branch for your pull request (`learning-codeql`).
14
-
15
-
1. Navigate to the `server` folder and select the `routes.py` file.
11
+
1. Ensure you are on the `main` branch then navigate to the `server` folder and select the `routes.py` file.
16
12
17
13
1. In the top right of the preview, click the **Edit** button.
18
14
@@ -24,15 +20,23 @@ Finally, let's use the information provided by CodeQL to better understand the v
24
20
"SELECT * FROM books WHERE name LIKE %s", name
25
21
```
26
22
27
-
1. Above the editor in the top-right, click the **Commit changes...** button. Use the defaults options to commit the changes to the `learning-codeql` branch.
23
+
1. Above the editor in the top-right, click the **Commit changes...** button. Use the defaults options to commit directly to the `main` branch.
28
24
29
25
- CodeQL will now initiate a another scan.
30
26
31
-
1.In the top navigation, navigate to the **Actions** tab. Wait for the **CodeQL** workflow to finish.
27
+
1.Wait a moment for the **CodeQL** workflow to finish.
32
28
33
-
1. Return the the open alerts page and review the open alerts.
29
+
1. Return the the **Security** tab and **Code Scanning** area.
34
30
35
-
- There should be zero open alerts and two closed alerts. Nice work! 🎉
31
+
- There should be no open alerts and 1 closed alerts. Nice work! 🎉
36
32
- Feel free to review the closed alerts, especially the audit trail.
37
33
38
-
1. With the CodeQL scan finished, Mona will check your progress and share a final review. Nice work! You are done! 🥳
34
+
1. Click on **Closed** to show our recently created alert.
0 commit comments