From d391100e68e92098d6f8169deec01fd3d16ec18d Mon Sep 17 00:00:00 2001 From: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com> Date: Fri, 8 May 2026 09:28:37 +1000 Subject: [PATCH] Fix CodeQL query path without copy step Remove the copy step and use inline config with a relative path from the go-git source-root to the codeql queries directory. Assisted-by: Claude Sonnet 4.5 Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com> --- .github/workflows/codeql.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 5b07c23..309b6ad 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -34,19 +34,17 @@ jobs: path: go-git fetch-depth: 0 - - name: Copy CodeQL queries to go-git - run: cp -r codeql go-git/ - - name: Initialize CodeQL uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 with: languages: go - source-root: go-git - config-file: go-git/codeql/codeql-config.yml - checkout-path: go-git + config: | + paths: + - go-git + queries: + - uses: ./codeql/queries/unclosed-resources.ql - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 with: category: go-git-custom-queries - checkout-path: go-git