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
Copy file name to clipboardExpand all lines: articles/defender-for-cloud/tutorial-enable-pull-request-annotations.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Tutorial Enable pull request annotations in GitHub or in Azure DevOps
3
3
description: Add pull request annotations in GitHub or in Azure DevOps. By adding pull request annotations, your SecOps and developer teams so that they can be on the same page when it comes to mitigating issues.
4
4
ms.topic: overview
5
5
ms.custom: ignite-2022
6
-
ms.date: 10/19/2022
6
+
ms.date: 10/20/2022
7
7
---
8
8
9
9
# Tutorial: Enable pull request annotations in GitHub and Azure DevOps
@@ -69,6 +69,8 @@ By enabling pull request annotations in GitHub, your developers gain the ability
69
69
branches: ["main"]
70
70
```
71
71
72
+
:::image type="content" source="media/tutorial-enable-pr-annotations/trigger-section.png" alt-text="Screenshot of how the code will look when added.":::
73
+
72
74
You can also view a [sample repository](https://github.com/microsoft/security-devops-action/tree/main/samples).
73
75
74
76
(Optional) You can select which branches you want to run it on by entering the branch(es) under the trigger section. If you want to include all branches remove the lines with the branch list.
@@ -107,16 +109,26 @@ Before you can enable pull request annotations, your main branch must have enabl
107
109
108
110
1. Navigate to **Project settings** > **Repositories**.
109
111
112
+
:::image type="content" source="media/tutorial-enable-pr-annotations/project-settings.png" alt-text="Screenshot that shows you where to navigate to, to select repositories.":::
113
+
110
114
1. Select the repository to enable pull requests on.
1. Navigate to **Branch Policies** > **Main branch**.
119
+
120
+
:::image type="content" source="media/tutorial-enable-pr-annotations/branch-policies.png" alt-text="Screenshot that shows where to locate the branch policies.":::
121
+
122
+
1. Locate the Build Validation section.
115
123
116
124
1. Ensure the CI Build is toggled to **On**.
117
125
126
+
:::image type="content" source="media/tutorial-enable-pr-annotations/build-validation.png" alt-text="Screenshot that shows where the CI Build toggle is located.":::
127
+
118
128
1. Select **Save**.
119
129
130
+
:::image type="content" source="media/tutorial-enable-pr-annotations/validation-policy.png" alt-text="Screenshot that shows the build validation.":::
131
+
120
132
Once you have completed these steps you can select the build pipeline you created previously and customize it's settings to suit your needs.
121
133
122
134
### Enable pull request annotations
@@ -135,6 +147,8 @@ Once you have completed these steps you can select the build pipeline you create
135
147
136
148
1. Toggle Pull request annotations to **On**.
137
149
150
+
:::image type="content" source="media/tutorial-enable-pr-annotations/annotation-on.png" alt-text="Screenshot that shows the toggle switched to on.":::
151
+
138
152
1. (Optional) Select a category from the drop-down menu.
139
153
140
154
> [!NOTE]
@@ -159,6 +173,8 @@ Once you've configured the scanner, you'll be able to view all issues that were
159
173
160
174
1. Navigate to **Pull requests**.
161
175
176
+
:::image type="content" source="media/tutorial-enable-pr-annotations/pull-requests.png" alt-text="Screenshot showing where to go to navigate to pull requests.":::
177
+
162
178
1. On the Overview, or files page, locate an affected line with an annotation.
163
179
164
180
1. Follow the remediation steps in the annotation.
0 commit comments