Skip to content

Commit 04b75b5

Browse files
committed
added images
1 parent 22f0847 commit 04b75b5

File tree

10 files changed

+18
-2
lines changed

10 files changed

+18
-2
lines changed
65.2 KB
Loading
128 KB
Loading
198 KB
Loading
43.9 KB
Loading
62.3 KB
Loading
24.1 KB
Loading
-25.8 KB
Loading
11.1 KB
Loading
61.4 KB
Loading

articles/defender-for-cloud/tutorial-enable-pull-request-annotations.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Tutorial Enable pull request annotations in GitHub or in Azure DevOps
33
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.
44
ms.topic: overview
55
ms.custom: ignite-2022
6-
ms.date: 10/19/2022
6+
ms.date: 10/20/2022
77
---
88

99
# 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
6969
branches: ["main"]
7070
```
7171
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+
7274
You can also view a [sample repository](https://github.com/microsoft/security-devops-action/tree/main/samples).
7375
7476
(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
107109
108110
1. Navigate to **Project settings** > **Repositories**.
109111
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+
110114
1. Select the repository to enable pull requests on.
111115
112116
1. Select **Policies**.
113117
114-
1. Navigate to **Branch Policies** > **Main branch** > **Build Validation**.
118+
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.
115123
116124
1. Ensure the CI Build is toggled to **On**.
117125
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+
118128
1. Select **Save**.
119129
130+
:::image type="content" source="media/tutorial-enable-pr-annotations/validation-policy.png" alt-text="Screenshot that shows the build validation.":::
131+
120132
Once you have completed these steps you can select the build pipeline you created previously and customize it's settings to suit your needs.
121133
122134
### Enable pull request annotations
@@ -135,6 +147,8 @@ Once you have completed these steps you can select the build pipeline you create
135147
136148
1. Toggle Pull request annotations to **On**.
137149
150+
:::image type="content" source="media/tutorial-enable-pr-annotations/annotation-on.png" alt-text="Screenshot that shows the toggle switched to on.":::
151+
138152
1. (Optional) Select a category from the drop-down menu.
139153
140154
> [!NOTE]
@@ -159,6 +173,8 @@ Once you've configured the scanner, you'll be able to view all issues that were
159173
160174
1. Navigate to **Pull requests**.
161175
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+
162178
1. On the Overview, or files page, locate an affected line with an annotation.
163179
164180
1. Follow the remediation steps in the annotation.

0 commit comments

Comments
 (0)