diff --git a/.github/workflows/build-beta.yml b/.github/workflows/build-beta.yml index 8fc0df9..1dbd2b7 100644 --- a/.github/workflows/build-beta.yml +++ b/.github/workflows/build-beta.yml @@ -32,13 +32,6 @@ jobs: steps: - name: Checkout Codebase uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: sonarsource/sonarqube-scan-action@v3 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - name: Login to GitHub CR uses: docker/login-action@v3 diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 0000000..2f18d2f --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,22 @@ +name: SonarQube Analysis + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Codebase + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: sonarsource/sonarqube-scan-action@v3 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}