Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate with sonarqube #53

Closed
projectrvce opened this issue Mar 26, 2019 · 8 comments
Closed

integrate with sonarqube #53

projectrvce opened this issue Mar 26, 2019 · 8 comments

Comments

@projectrvce
Copy link

I want to integrate this project with sonarqube. Is there any way to do this?

@ejohn20
Copy link
Member

ejohn20 commented Mar 26, 2019

If puma scan is installed via a NuGet package, it appears that Sonar supports importing those warnings: https://docs.sonarqube.org/pages/viewpage.action?pageId=11640944.

@ejohn20
Copy link
Member

ejohn20 commented Mar 28, 2019

Comment from duplicate issue: I actually want to edit this pumasecurity, create nuget package and then integrate it with sonarqube. May I know how can we create nuget package after editing puma security?

@ejohn20
Copy link
Member

ejohn20 commented Mar 28, 2019

We encourage folks to fork our repository, make customizations, and contribute back via a merge request if you'd like to enhance the project.

Are you looking to create a sonar integration only, or do you have also have custom rules that you'd like to integrate as well?

Overall, I would start by looking in the Puma.Security.Parser project, which parses the build results (MSBuild) and pulls out all of the SEC### issues. This project currently exports the data to MSBuild and SARIF formatted results.

This project could easily be enhanced to call the Sonar API and upload the Puma results to a given Sonar project.

@ejohn20
Copy link
Member

ejohn20 commented Mar 28, 2019

Comment from duplicate issue: I actually want to edit this pumasecurity, create nuget package and then integrate it with sonarqube. May I know how can we create nuget package after editing puma security?

Answering your nuget question, the Rules project is configured to build a nuget package during each build. It is output into the Rules/bin/Debug|Release directory.

@projectrvce
Copy link
Author

Severity Code Description Project File Line Suppression State
Error The command ""C:\Users\meghanar\Downloads\pumascan\puma-scan-2.0.0.1\packages\NuGet.CommandLine.3.4.3\tools\NuGet.exe" pack Diagnostic.nuspec -NoPackageAnalysis -Version 2.0.0.1 -OutputDirectory ." exited with code 3. Puma.Security.Rules C:\Users\meghanar\Downloads\pumascan\puma-scan-2.0.0.1\Rules\Puma.Security.Rules.csproj 400

I am getting this error when i am trying to build the solution. Can you please help me in overcoming this problem?

@ejohn20
Copy link
Member

ejohn20 commented Mar 29, 2019

We just released v2.1.0.0 this morning. I'd recommend pulling the latest code. It is now targeting .NET Standard 2.0 instead of the full framework. This will get us on the same page.

@ejohn20
Copy link
Member

ejohn20 commented Apr 11, 2019

Did you get this integration working? If so, willing to contribute back for other folks? We have had a lot of people ask about how to do this. Even just a write up of how to do it would be very helpful.

@projectrvce
Copy link
Author

It was working when I tried it some couple of days back. I never tried after that.

@ejohn20 ejohn20 closed this as completed Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants