@@ -115,69 +115,69 @@ jobs:
115115 # Specify whether or not CI build should fail if Codecov runs into an error during upload
116116 fail_ci_if_error : true
117117
118- - name : SonarScanner for .NET 9 with pull request decoration support
119- id : scan
120- uses : highbyte/sonarscan-dotnet@2.0
121- if : ${{ false }}
122- # if: github.event_name == 'push'
123- env :
124- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
125- with :
126- dotnetBuildArguments : ${{env.working-directory}}
127- dotnetTestArguments : ${{env.working-directory}} --logger trx --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
128- # Optional extra command arguments the the SonarScanner 'begin' command
129- sonarBeginArguments : /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" -d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" -d:sonar.qualitygate.wait=true
130- # The key of the SonarQube project
131- sonarProjectKey : ${{secrets.PROJECT_KEY_API}}
132- # The name of the SonarQube project
133- sonarProjectName : PIMS -API
134- # The SonarQube server URL. For SonarCloud, skip this setting.
135- sonarHostname : ${{secrets.SONAR_URL}}
136-
137- - name : Find Comment
138- if : ${{ false }}
139- # if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
140- uses : peter-evans/find-comment@v1
141- id : fc
142- with :
143- issue-number : ${{ github.event.pull_request.number }}
144- comment-author : " github-actions[bot]"
145- body-includes : QUALITY GATE STATUS FOR .NET 9
146-
147- - name : Check Quality Gate and Create Comment
148- if : ${{ false }}
149- # if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id == ''
150- uses : peter-evans/create-or-update-comment@v1
151- env :
152- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
153- SONAR_HOST_URL : ${{ secrets.SONAR_URL }}
154- PROJECT_KEY : ${{secrets.PROJECT_KEY_API}}
155- with :
156- issue-number : ${{ github.event.pull_request.number }}
157- body : |
158- QUALITY GATE STATUS FOR .NET 9: FAILED.
159-
160- [View and resolve details on][1]
161-
162- [1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}}
163- reactions : confused
164-
165- - name : Check Quality Gate and Update Comment
166- if : ${{ false }}
167- # if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id != '' && github.event.pull_request.head.repo.full_name == github.repository
168- uses : peter-evans/create-or-update-comment@v1
169- env :
170- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
171- SONAR_HOST_URL : ${{ secrets.SONAR_URL }}
172- PROJECT_KEY : ${{secrets.PROJECT_KEY_APP}}
173- with :
174- comment-id : ${{ steps.fc.outputs.comment-id }}
175- issue-number : ${{ github.event.pull_request.number }}
176- body : |
177- QUALITY GATE STATUS FOR .NET 9: FAILED.
178-
179- [View and resolve details on][1]
180-
181- [1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}}
182- edit-mode : replace
183- reactions : eyes
118+ # - name: SonarScanner for .NET 9 with pull request decoration support
119+ # id: scan
120+ # uses: highbyte/sonarscan-dotnet@2.0
121+ # if: ${{ false }}
122+ # # if: github.event_name == 'push'
123+ # env:
124+ # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
125+ # with:
126+ # dotnetBuildArguments: ${{env.working-directory}}
127+ # dotnetTestArguments: ${{env.working-directory}} --logger trx --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
128+ # # Optional extra command arguments the the SonarScanner 'begin' command
129+ # sonarBeginArguments: /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" -d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" -d:sonar.qualitygate.wait=true
130+ # # The key of the SonarQube project
131+ # sonarProjectKey: ${{secrets.PROJECT_KEY_API}}
132+ # # The name of the SonarQube project
133+ # sonarProjectName: TNO -API
134+ # # The SonarQube server URL. For SonarCloud, skip this setting.
135+ # sonarHostname: ${{secrets.SONAR_URL}}
136+
137+ # - name: Find Comment
138+ # if: ${{ false }}
139+ # # if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
140+ # uses: peter-evans/find-comment@v1
141+ # id: fc
142+ # with:
143+ # issue-number: ${{ github.event.pull_request.number }}
144+ # comment-author: "github-actions[bot]"
145+ # body-includes: QUALITY GATE STATUS FOR .NET 9
146+
147+ # - name: Check Quality Gate and Create Comment
148+ # if: ${{ false }}
149+ # # if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id == ''
150+ # uses: peter-evans/create-or-update-comment@v1
151+ # env:
152+ # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
153+ # SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
154+ # PROJECT_KEY: ${{secrets.PROJECT_KEY_API}}
155+ # with:
156+ # issue-number: ${{ github.event.pull_request.number }}
157+ # body: |
158+ # QUALITY GATE STATUS FOR .NET 9: FAILED.
159+
160+ # [View and resolve details on][1]
161+
162+ # [1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}}
163+ # reactions: confused
164+
165+ # - name: Check Quality Gate and Update Comment
166+ # if: ${{ false }}
167+ # # if: failure() && steps.scan.outcome == 'failure' && github.event_name == 'pull_request' && steps.fc.outputs.comment-id != '' && github.event.pull_request.head.repo.full_name == github.repository
168+ # uses: peter-evans/create-or-update-comment@v1
169+ # env:
170+ # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
171+ # SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
172+ # PROJECT_KEY: ${{secrets.PROJECT_KEY_APP}}
173+ # with:
174+ # comment-id: ${{ steps.fc.outputs.comment-id }}
175+ # issue-number: ${{ github.event.pull_request.number }}
176+ # body: |
177+ # QUALITY GATE STATUS FOR .NET 9: FAILED.
178+
179+ # [View and resolve details on][1]
180+
181+ # [1]: ${{env.SONAR_HOST_URL}}/dashboard?id=${{env.PROJECT_KEY}}
182+ # edit-mode: replace
183+ # reactions: eyes
0 commit comments