Skip to content

fix SONAR_TOKEN reference #69

fix SONAR_TOKEN reference

fix SONAR_TOKEN reference #69

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches:
- main
jobs:
build-jar-job:
name: 'Run Sonarqube'
runs-on: ubuntu-latest
steps:
- name: checkout from git
uses: actions/checkout@v3
- name: Set up GraalVM 21
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm-community'
- id: run_sonarqube
name: sonarqube
env:
SONAR_TOKEN: ${{ secrets.CG_SONAR_LOGIN }}
run: |
mvn \
-s .mvn/settings.xml \
--no-transfer-progress \
--batch-mode \
-Pcoverage \
-Psonar \
clean verify sonar:sonar