From 3f906a6989caf05050663def6785f7ad0d9ce05f Mon Sep 17 00:00:00 2001 From: Pixee OSS Assistant <148879594+pixeeai@users.noreply.github.com> Date: Mon, 20 May 2024 23:22:07 -0400 Subject: [PATCH] Create sonar_scan.yml Signed-off-by: Pixee OSS Assistant <148879594+pixeeai@users.noreply.github.com> --- .github/workflows/sonar_scan.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/sonar_scan.yml diff --git a/.github/workflows/sonar_scan.yml b/.github/workflows/sonar_scan.yml new file mode 100644 index 000000000000..c6b1bec2a446 --- /dev/null +++ b/.github/workflows/sonar_scan.yml @@ -0,0 +1,20 @@ +name: Run SonarQube with Maven + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Build with Maven cloud + run: mvn -B verify sonar:sonar -Dsonar.projectKey=javareachabilityy -Dsonar.organization=javareachabilityy -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONARCLOUD_TOKEN + env: + GIT_HUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }} + SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}