You can scan the KB, what is actually modeled. The Security Scanner scans the model and checks the modeled code and the model/s configuration for OWASP TOP 10 issues
https://wiki.genexus.com/commwiki/servlet/wiki?46412,Security+Scanner+built-in+tool
MSBuild tasks: https://wiki.genexus.com/commwiki/servlet/wiki?46412,Security+Scanner+built-in+tool#Running+Security+Scanner+using+MsBuild+task
You can run the Unit and UI Tests of the model
https://wiki.genexus.com/commwiki/servlet/wiki?38327,Toc%3AAutomated+Testing,
MSBuild tasks: https://wiki.genexus.com/commwiki/servlet/wiki?40738,MSBuild+Tasks+for+Running+Tests
Note: Results can be exported in several standard formats: JUnit, HTML, Allure.