Branch Scan Report
If a user can see a given repository in one of the three dashboards (Global, Project-level, or Repository-level), that user can scan any branch in that repository for vulnerabilities and view the details of those vulnerabilities via the Branch Scan Report.
For example, an admin for Project 2
uses the Project-level Dashboard to see the status of each branch in the maprunner
repository:
![](../../__attachments/14786297883/BSR1.png?inst-v=dd2e15ff-a066-4891-84cc-df8425dc8a25)
By clicking on the number of vulnerabilities found in the master branch as shown here:
![](../../__attachments/14786297883/BSR2.png?inst-v=dd2e15ff-a066-4891-84cc-df8425dc8a25)
this user can access the Branch Scan Report:
![](../../__attachments/14786297883/Screenshot%202023-03-24%20at%2011.51.55%20AM.png?inst-v=dd2e15ff-a066-4891-84cc-df8425dc8a25)
Here, we see one vulnerability, where the specific text that matched the rule’s regex is highlighted in (specifically, this is the group 0 match).
This user can use the branch selector dropdown in the upper-left to instead see the status of the new-feature
branch:
![](../../__attachments/14786297883/BSR5.png?inst-v=dd2e15ff-a066-4891-84cc-df8425dc8a25)
Since this branch hasn’t been scanned yet, there is no information to display. Pressing the Trigger Scan button as shown here:
![](../../__attachments/14786297883/BSR6.png?inst-v=dd2e15ff-a066-4891-84cc-df8425dc8a25)
will start the scan, or if Bitbucket already has multiple scans ongoing, this will schedule the scan. Results will start to populate as the app finds vulnerabilities in files within the branch:
![](../../__attachments/14786297883/BSR7.png?inst-v=dd2e15ff-a066-4891-84cc-df8425dc8a25)
The final results might look like the following:
![](../../__attachments/14786297883/Screenshot%202023-03-24%20at%2012.13.25%20PM.png?inst-v=dd2e15ff-a066-4891-84cc-df8425dc8a25)
Results of a scan can also be filtered by which rule generated the scan. Using the Filter By Rule dropdown in the upper-left, the admin can concentrate on one kind of vulnerability:
![](../../__attachments/14786297883/Screenshot%202023-03-24%20at%2012.14.21%20PM.png?inst-v=dd2e15ff-a066-4891-84cc-df8425dc8a25)