Pre-requisites:
Make sure SonarQube is up and running
Make sure Java Project is setup in GitHub
How to integrate SonarQube with GitHub Actions:
We will be following below steps:
Create Token in SonarQube to authenticate with GitHub Actions
Add Sonar Token, SonarQube URL as Secrets in GitHub Actions
Create GitHub Actions CICD workflow yaml
Add tasks for Maven build and Sonar Scan
Run the workflow in GitHub hosted runner(Ubuntu)
Verify scan report in SonarQube
Watch video How to Integrate SonarQube with GitHub Actions | Automate Code Scan using SonarQube in GitHub Action online without registration, duration 13 minute 08 second in high hd quality. This video was added by user DevOps Coach 16 February 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7 thousand once and liked it 71 people.