Skip to content

Commit

Permalink
GitHub Actions: Updates projectKey and organization for SonarCloud
Browse files Browse the repository at this point in the history
I've editted the organisation on SonarCloud and the organisation key changed.
  • Loading branch information
SpraxDev committed May 7, 2023
1 parent 3dc48da commit e315365
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ permissions: read-all

env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_PROJECT_KEY: songoda_SongodaCore
SONAR_ORGANIZATION: craftaro
SONAR_PROJECT_KEY: craftaro_SongodaCore

jobs:
Analyze:
Expand All @@ -34,6 +35,8 @@ jobs:
mvn -B \
verify \
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
-Dsonar.host.url=https://sonarcloud.io \
"-Dsonar.organization=$SONAR_ORGANIZATION" \
"-Dsonar.projectKey=$SONAR_PROJECT_KEY"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
<java.version>1.8</java.version>
<java.release>8</java.release>

<sonar.organization>songoda</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.junit.reportPaths>target/surefire-reports/*.xml</sonar.junit.reportPaths>
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties>
Expand Down

0 comments on commit e315365

Please sign in to comment.