Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

ci: skip SonarCloud scan on main pushes

diegosouzapw811a3ab5770b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4b515d40f8..647c7a0d43 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -295,11 +295,15 @@ jobs:
name: coverage-report
path: .
- name: Explain SonarQube skip
- if: ${{ env.SONAR_TOKEN == '' || env.SONAR_HOST_URL == '' }}
+ if: ${{ github.event_name != 'pull_request' || env.SONAR_TOKEN == '' || env.SONAR_HOST_URL == '' }}
run: |
- echo "SonarQube scan skipped because SONAR_TOKEN or SONAR_HOST_URL is not configured." >> "$GITHUB_STEP_SUMMARY"
+ if [ "${{ github.event_name }}" != "pull_request" ]; then
+ echo "SonarQube scan skipped on non-PR events to keep main pushes governed by repository CI gates." >> "$GITHUB_STEP_SUMMARY"
+ else
+ echo "SonarQube scan skipped because SONAR_TOKEN or SONAR_HOST_URL is not configured." >> "$GITHUB_STEP_SUMMARY"
+ fi
- name: SonarQube Scan
- if: ${{ env.SONAR_TOKEN != '' && env.SONAR_HOST_URL != '' }}
+ if: ${{ github.event_name == 'pull_request' && env.SONAR_TOKEN != '' && env.SONAR_HOST_URL != '' }}
uses: SonarSource/sonarqube-scan-action@v8
env:
SONAR_TOKEN: ${{ env.SONAR_TOKEN }}
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
index 7f47ef0ac1..74aac42e7d 100644
--- a/.github/workflows/docker-publish.yml
+++ b/.github/workflows/docker-publish.yml
@@ -6,6 +6,8 @@ on:
- main
tags:
- "v*"
+ paths-ignore:
+ - ".github/workflows/**"
release:
types: [published]
workflow_dispatch: