From 24830fccd8072905c6c1b7abba149dc22a2da9ad Mon Sep 17 00:00:00 2001 From: Vladislav Feofilaktov Date: Mon, 29 Sep 2025 16:51:22 +0300 Subject: [PATCH 1/2] run `inspectCode` only for PRs --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0230f2c..87775db 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,6 +100,8 @@ jobs: name: Inspect code needs: [ build ] runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + permissions: contents: write checks: write From 81ca37cd15f9d693e304dfd298bd3cad9eaba9c4 Mon Sep 17 00:00:00 2001 From: Vladislav Feofilaktov Date: Mon, 29 Sep 2025 16:54:56 +0300 Subject: [PATCH 2/2] update `upload-sarif` action up to v3 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87775db..3087470 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -137,7 +137,7 @@ jobs: cache-default-branch-only: true - name: Qodana - Publish Results - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v3 with: sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json