Skip to content

Commit

Permalink
[AAE-28943] required changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mavotto committed Dec 20, 2024
1 parent 8b2f916 commit a5a6fd2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/actions/sonar-scanner/action.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
name: 'Sonar Scanner'
description: 'Run Sonar Scanner to load JaCoCo report on SonarCloud'
inputs:
sonar_token:
sonar-token:
description: 'SonarCloud token'
required: true
aggregate-report-path:
description: 'Path of the aggregated JaCoCo report'
required: true
project_key:
project-key:
description: 'SonarCloud project key'
required: true
sonar-host-url:
description: 'SonarCloud host url'
required: false
default: 'https://sonarcloud.io'
sonar-organization:
description: 'SonarCloud organization'
required: false
default: 'alfresco'


runs:
using: composite
steps:
- name: Load JaCoCo report on SonarCloud
env:
SONAR_TOKEN: ${{ inputs.sonar_token }}
SONAR_TOKEN: ${{ inputs.sonar-token }}
shell: bash
run: |
mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=alfresco -Dsonar.projectKey=${{ inputs.project_key}} -Dsonar.coverage.jacoco.xmlReportPaths=${{ inputs.aggregate-report-path }}
mvn sonar:sonar -Dsonar.host.url=${{ inputs.sonar-host-url }} -Dsonar.organization=${{ inputs.sonar-organization }} -Dsonar.projectKey=${{ inputs.project-key }} -Dsonar.coverage.jacoco.xmlReportPaths=${{ inputs.aggregate-report-path }}
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,8 @@ Run Sonar Scanner to load JaCoCo report on SonarCloud.
```

sonar-host-url and sonar-organization are optional inputs. If not provided, the default values will be used.

### update-deployment-runtime-versions

For more information, see [update-deployment-runtime-versions](../.github/actions/update-deployment-runtime-versions/action.yml).
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.6.3
v8.6.4

0 comments on commit a5a6fd2

Please sign in to comment.