Skip to content

Commit d391100

Browse files
committed
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 <noreply@anthropic.com> Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
1 parent bb2e8cd commit d391100

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,17 @@ jobs:
3434
path: go-git
3535
fetch-depth: 0
3636

37-
- name: Copy CodeQL queries to go-git
38-
run: cp -r codeql go-git/
39-
4037
- name: Initialize CodeQL
4138
uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
4239
with:
4340
languages: go
44-
source-root: go-git
45-
config-file: go-git/codeql/codeql-config.yml
46-
checkout-path: go-git
41+
config: |
42+
paths:
43+
- go-git
44+
queries:
45+
- uses: ./codeql/queries/unclosed-resources.ql
4746
4847
- name: Perform CodeQL Analysis
4948
uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
5049
with:
5150
category: go-git-custom-queries
52-
checkout-path: go-git

0 commit comments

Comments
 (0)