Skip to content

Commit

Permalink
testing sonar.token
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanakushnir committed Jul 4, 2023
1 parent 4ae0444 commit 45281b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=bogdanakushnir_java-test
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=bogdanakushnir_t
# -Dsonar.token=c3be47fe47f698d9641c82c0b4b0fb80f9d2d84a
6 changes: 4 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<sonar.organization>bogdanakushnir</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<!-- <sonar.token>c3be47fe47f698d9641c82c0b4b0fb80f9d2d84a</sonar.token>-->
<!-- <sonar.login>c3be47fe47f698d9641c82c0b4b0fb80f9d2d84a</sonar.login>-->
<sonar.organization>bogdanakushnir</sonar.organization>
<sonar.host.url>https://squad-4-core.sc-dev.io</sonar.host.url>
</properties>

</project>
4 changes: 3 additions & 1 deletion sonar-scanner.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
sonar.organization=bogdanakushnir
sonar.projectKey=bogdanakushnir_java-test
sonar.projectKey=bogdanakushnir_t

# relative paths to source directories. More details and properties are described
# in https://sonarcloud.io/documentation/project-administration/narrowing-the-focus/
sonar.sources=.

#sonar.exclusions = src/main/java/org/test/example

0 comments on commit 45281b8

Please sign in to comment.