From fd191d37dfc315502f02cbdc430c0bca04f4a1e4 Mon Sep 17 00:00:00 2001 From: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Date: Thu, 4 Jun 2026 10:18:48 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20implement=20issue=20#367=20=E2=80=94=20?= =?UTF-8?q?[Fleet=20Monitor]=20petry-projects/google-app-scripts=20?= =?UTF-8?q?=E2=80=94=20sonarcloud.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sonarcloud.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 64974128..e5df844f 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -15,12 +15,23 @@ jobs: permissions: contents: read pull-requests: read + actions: write env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: fetch-depth: 0 + - name: Cache sonar-scanner + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 + with: + path: ${{ runner.tool_cache }}/sonar-scanner + key: sonar-scanner-${{ runner.os }}-8.1.0.6389 - name: SonarCloud Scan if: ${{ env.SONAR_TOKEN != '' }} + id: sonar_scan + continue-on-error: true + uses: SonarSource/sonarqube-scan-action@7006c4492b2e0ee0f816d36501671557c97f5995 # v8.1.0 + - name: SonarCloud Scan (retry) + if: ${{ env.SONAR_TOKEN != '' && steps.sonar_scan.outcome == 'failure' }} uses: SonarSource/sonarqube-scan-action@7006c4492b2e0ee0f816d36501671557c97f5995 # v8.1.0