diff --git a/.github/workflows/lint-and-test-elixir.yml b/.github/workflows/lint-and-test-elixir.yml index 5425bda..d1e8b69 100644 --- a/.github/workflows/lint-and-test-elixir.yml +++ b/.github/workflows/lint-and-test-elixir.yml @@ -9,46 +9,5 @@ on: otp-version: type: string required: true - secrets: - SONAR_TOKEN: - required: true jobs: - sonarqube: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up BEAM (Elixir/OTP) - uses: erlef/setup-beam@v1 - with: - elixir-version: ${{ inputs.elixir-version }} - otp-version: ${{ inputs.otp-version }} - - - name: Install deps - run: mix deps.get - - - name: Run Credo (SARIF) - run: mix credo --strict --format sarif --mute-exit-status > credo.sarif - - - name: Install Sobelow escript - run: mix escript.install hex sobelow --force - - name: Run Sobelow (SARIF) - run: ~/.mix/escripts/sobelow --format sarif --out sobelow.sarif || true - - - name: Sonar scan - uses: SonarSource/sonarqube-scan-action@v6.0.0 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - with: - args: > - -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} - -Dsonar.organization=${{ vars.SONAR_ORGANIZATION }} - -Dsonar.sources=. - -Dsonar.sarifReportPaths=sobelow.sarif - - - name: Quality Gate - uses: SonarSource/sonarqube-quality-gate-action@v1.2.0 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/lint-and-test-go.yml b/.github/workflows/lint-and-test-go.yml index 56cf435..6646c46 100644 --- a/.github/workflows/lint-and-test-go.yml +++ b/.github/workflows/lint-and-test-go.yml @@ -6,27 +6,5 @@ on: go-version: type: string required: true - secrets: - SONAR_TOKEN: - required: true jobs: - sonarqube: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Scan - uses: SonarSource/sonarqube-scan-action@v6.0.0 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - with: - args: > - -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} - -Dsonar.organization=${{ vars.SONAR_ORGANIZATION }} - - - name: Quality Gate - uses: SonarSource/sonarqube-quality-gate-action@v1.2.0 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/lint-and-test-java.yml b/.github/workflows/lint-and-test-java.yml index 50c6538..4f2237b 100644 --- a/.github/workflows/lint-and-test-java.yml +++ b/.github/workflows/lint-and-test-java.yml @@ -11,21 +11,6 @@ on: type: string required: false default: "temurin" - source: - type: string - required: true - sonar-inclusions: - type: string - required: true - sonar-exclusions: - type: string - required: true - sonar-coverage-exclusions: - type: string - required: true - secrets: - SONAR_TOKEN: - required: true jobs: lint: @@ -87,44 +72,3 @@ jobs: name: java-classes path: target/classes if-no-files-found: error - - sonarqube: - runs-on: ubuntu-latest - needs: test - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Download JaCoCo report - uses: actions/download-artifact@v4 - with: - name: jacoco-report - path: target/site/jacoco - - - name: Download compiled classes - uses: actions/download-artifact@v4 - with: - name: java-classes - path: target/classes - - - name: Sonar scan - uses: SonarSource/sonarqube-scan-action@v6.0.0 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - with: - args: > - -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} - -Dsonar.organization=${{ vars.SONAR_ORGANIZATION }} - -Dsonar.java.binaries=target/classes - -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml - -Dsonar.sources=. - -Dsonar.inclusions=${{ inputs.sonar-inclusions }} - -Dsonar.exclusions=${{ inputs.sonar-exclusions }} - -Dsonar.tests=tests - -Dsonar.coverage.exclusions=${{ inputs.sonar-coverage-exclusions }} - -Dsonar.sourceEncoding=UTF-8 - - - name: Quality Gate - uses: SonarSource/sonarqube-quality-gate-action@v1.2.0 - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/cpp/common.just b/cpp/common.just index 91ded74..62ca489 100644 --- a/cpp/common.just +++ b/cpp/common.just @@ -47,4 +47,4 @@ test: fetch-proto --filter '\.\./src/' \ --exclude '_deps/.*' \ --exclude '.*generated/.*' \ - . \ No newline at end of file + .