From cad9e1c5f38b5badde8055a34ed25387c47c5f8d Mon Sep 17 00:00:00 2001 From: Matheus Macabu Date: Mon, 17 Nov 2025 15:26:33 +0100 Subject: [PATCH] Actions: Only run CodeQL analysis on main/release branches (#114021) * Actions: Only run CodeQL analysis on main/release branches * disble cache in go action --- .github/workflows/codeql-analysis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b06c637112d..925268df84a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -8,7 +8,9 @@ name: "CodeQL checks" on: workflow_dispatch: push: - branches: ['**'] # run on all branches + branches: + - main + - release-*.*.* paths-ignore: - '**/*.cue' - '**/*.json' @@ -74,6 +76,7 @@ jobs: name: Set go version uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 with: + cache: false go-version-file: go.mod # Initializes the CodeQL tools for scanning.