GitHubActions - SonarQube Integration for static analysis of Maven code base

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 เม.ย. 2023
  • Short demo to showcase usage of GitHub actions for static analysis of a Maven based Java code base, using GitHub Actions.
    Source code used in this demo : github.com/rchidana/github-mv...
    GitHub Actions Documentation for SonarQube: github.com/marketplace/action...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 9

  • @imranshamskhan5242
    @imranshamskhan5242 ปีที่แล้ว

    For example if the GitHub report has ruby/angular code , than what would be the process ?

    • @crudsinfotechng8127
      @crudsinfotechng8127  ปีที่แล้ว

      You would need to check if there is any supported GitHub Actions for programming language of your need out here : github.com/marketplace?type=actions&query=sonar+

  • @shreyasmanju7230
    @shreyasmanju7230 11 หลายเดือนก่อน

    You made your local host to public
    But what if we want to pass local host url (priavte) only?

    • @crudsinfotechng8127
      @crudsinfotechng8127  10 หลายเดือนก่อน

      Not sure if I understand your question but if you want to connect GitHub Hosted Runner (which is running on GitHub Public Cloud) to your local SonarQube server (running well within your local network), you would need to check & figure out a network connectivity mechanism. If you can get this sorted out in someway, you can go ahead & specify pass on localhost url itself (I doubt if this can be achieved on a GitHub hosted runner and you can surely consider a local runner for this task). You can refer to one of my other videos where I have demonstrated how to spin up a Local runner.
      Hope this helps.

    • @artisticw1zard
      @artisticw1zard 9 หลายเดือนก่อน

      You can't pass localhost to public internet and since github needs to connect to sq server, you have to use this kinda tunnel ngork, cloudflare tunnel etc

  • @MrSanmaster
    @MrSanmaster 7 หลายเดือนก่อน

    But there is no coverage report available also in sonar i can see there are zero %coverage

    • @crudsinfotechng8127
      @crudsinfotechng8127  7 หลายเดือนก่อน

      The repository that I used does not contain any JUnit test cases which is why the code coverage % is not published.

    • @MrSanmaster
      @MrSanmaster 7 หลายเดือนก่อน

      @@crudsinfotechng8127 same i also used and not getting the coverage report,
      And in my repository there are junit test cases