Skip to content

Commit

Permalink
Revert to using setup-sonarscanner and sonarqube-quality-gate-action
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-mk committed Dec 16, 2024
1 parent a01069c commit 513ab2b
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/frontend-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,31 +181,23 @@ jobs:
- name: Install node modules
run: npm ci
working-directory: ./frontend
- name: Run coverage
run: npm run coverage
- name: Install SonarScanner
uses: digitalservicebund/setup-sonarscanner@3ade23691f865c02dce6b46452947a0e7944196e # v1.0.0
- name: Scan with SonarQube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
npm run coverage
sonar-scanner
working-directory: ./frontend
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4
- name: Check SonarQube Quality Gate
uses: sonarsource/sonarqube-quality-gate-action@424137db1fae80e9eb279829995166f2f44bc8df
with:
scanMetadataReportFile: frontend/.scannerwork/report-task.txt
timeout-minutes: 3
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}

# - name: Install SonarScanner
# uses: digitalservicebund/setup-sonarscanner@3ade23691f865c02dce6b46452947a0e7944196e # v1.0.0
# - name: Scan with SonarQube
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# run: |
# npm run coverage
# sonar-scanner
# working-directory: ./frontend
# - name: Check SonarQube Quality Gate
# uses: sonarsource/sonarqube-quality-gate-action@424137db1fae80e9eb279829995166f2f44bc8df
# with:
# scanMetadataReportFile: frontend/.scannerwork/report-task.txt
# timeout-minutes: 3
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# - name: Send status to Slack
# # Third-party action, pin to commit SHA!
# # See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions
Expand Down

0 comments on commit 513ab2b

Please sign in to comment.