mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-23 22:15:47 +00:00
* disabled sonar gha Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> * disabled job no renaming Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> * Update .github/workflows/sonar.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
32 lines
831 B
YAML
32 lines
831 B
YAML
---
|
|
name: Sonar Scan
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
# Temporarily disabling the Sonar Scan job due to [reason]. Re-enable when [condition].
|
|
if: false
|
|
name: Sonar Scan
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
# Shallow clones should be disabled for a better relevancy of analysis
|
|
fetch-depth: 0
|
|
|
|
- uses: sonarsource/sonarqube-scan-action@master
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
|
|
|
- uses: sonarsource/sonarqube-quality-gate-action@master
|
|
# Force to fail step after specific time.
|
|
timeout-minutes: 5
|
|
env:
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|