Skip to content

Commit c091417

Browse files
authored
Add auto triage exercise
1 parent bd26c9d commit c091417

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

_labs/images/lab-2-1-6.png

64.8 KB
Loading

_labs/images/lab-2-1-7.png

89.2 KB
Loading

_labs/lab2.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@ Now that we have all of the security feature enabled, let's review the security
6363
<img src="images/lab-2-1-5.png"/>
6464
</details>
6565

66+
67+
11. Auto-triage your alerts allows you control over how Dependabot opens pull requests, ignores false positives and snoozes alerts. Navigate to the **Settings** tab (the icon of the gear) in the repo, back to **Code Scanning**, then find **Dependabot rules** underneath **Dependabot**.
68+
69+
12. Add a rule to snooze any alerts that do not have a fix available. Choose the "gear" icon and select the `New rule` button. Name the rule `Snooze when no patch available`, add a target metadata for all npm packages: `ecosystem:npm` and ensure the `Dismiss Alerts` - `Until patch is available` is selected. Next, select `Create rule`.
70+
71+
<details>
72+
<img src="images/lab-2-1-6.png"/>
73+
</details>
74+
75+
13. Navigating back to the **Security** tab / **Dependabot** under the **Vulnerability alerts** heading. You will see `1 Closed` heading. Select this to find your alert `Command Injection in marsdb` without any fix has now been `Dismissed` as `auto-dismissed`. The audit log will note `Repository rule created and Snooze when no patch available was applied`
76+
77+
<details>
78+
<img src="images/lab-2-1-7.png"/>
79+
</details>
80+
6681
## Exercise 2: Reviewing Code Scanning alerts
6782

6883
1. Under the **Security** tab in the repo, click on **Code scanning** to review the code scanning alerts.

0 commit comments

Comments
 (0)