Skip to content

Commit 47a536c

Browse files
committed
Always output valid JSON containing paths-ignore
1 parent b551804 commit 47a536c

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"paths-ignore": []
3+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@echo off
22
if exist vendor\modules.txt (
3-
type %CODEQL_EXTRACTOR_GO_ROOT%\codeql-tools\baseline-config.json
3+
type %CODEQL_EXTRACTOR_GO_ROOT%\codeql-tools\baseline-config-vendor.json
4+
) else (
5+
type %CODEQL_EXTRACTOR_GO_ROOT%\codeql-tools\baseline-config-empty.json
46
)

go/codeql-tools/configure-baseline.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

33
if [ -f vendor/modules.txt ]; then
4-
cat $CODEQL_EXTRACTOR_GO_ROOT/codeql-tools/baseline-config.json
4+
cat $CODEQL_EXTRACTOR_GO_ROOT/codeql-tools/baseline-config-vendor.json
5+
else
6+
cat $CODEQL_EXTRACTOR_GO_ROOT/codeql-tools/baseline-config-empty.json
57
fi

0 commit comments

Comments
 (0)