Skip to content

Commit 990a634

Browse files
authored
Merge pull request #9 from AriehSchneier/fix-codeql-query-path
Fix CodeQL query path without copy step
2 parents bb2e8cd + d391100 commit 990a634

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)