Skip to content

Commit 067a779

Browse files
authored
tools: enable CodeQL config file
A previous change designed to ignore test files in CodeQL scans had multiple problems. This fixes the CodeQL scan breakage. It adds a CodeQL config file, which allows us to ignore the test directory in our scans. Refs: nodejs#57978 (comment) Refs: https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#specifying-directories-to-scan PR-URL: nodejs#58036 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6cd1c09 commit 067a779

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/codeql-config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: CodeQL config
2+
3+
paths-ignore:
4+
- test

.github/workflows/codeql.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
permissions:
88
contents: read
99

10-
paths-to-ignore:
11-
- test
12-
1310
jobs:
1411
analyze:
1512
name: Analyze
@@ -33,6 +30,7 @@ jobs:
3330
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
3431
with:
3532
languages: ${{ matrix.language }}
33+
config-file: ./.github/codeql-config.yml
3634

3735
- name: Autobuild
3836
uses: github/codeql-action/autobuild@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11

0 commit comments

Comments
 (0)