Specify the organization name in the email subject #1032
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sonar analysis | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java-version: [17] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK ${{matrix.java-version}} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: temurin | |
cache: maven | |
java-version: ${{matrix.java-version}} | |
- name: Sonar analysis | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_VIANELLO }} | |
run: mvn -B -U install sonar:sonar | |
-Dsonar.projectKey=indigo-iam_iam | |
-Dsonar.organization=indigo-iam | |
-Dsonar.login=$SONAR_TOKEN | |
-Dsonar.pullrequest.key=${{ github.event.number }} | |
-Dsonar.pullrequest.branch=${{ github.HEAD_REF }} | |
-Dsonar.pullrequest.base=${{ github.BASE_REF }} | |
-Dsonar.pullrequest.github.repository=${{ github.repository }} | |
-Dsonar.scm.provider=git | |
-Dsonar.host.url=https://sonarcloud.io |