Always output valid JSON containing paths-ignore

This commit is contained in:
Owen Mansel-Chan
2023-07-31 16:09:47 +01:00
parent b5518047fa
commit 47a536c85d
4 changed files with 9 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
{
"paths-ignore": []
}

View File

@@ -1,4 +1,6 @@
@echo off
if exist vendor\modules.txt (
type %CODEQL_EXTRACTOR_GO_ROOT%\codeql-tools\baseline-config.json
type %CODEQL_EXTRACTOR_GO_ROOT%\codeql-tools\baseline-config-vendor.json
) else (
type %CODEQL_EXTRACTOR_GO_ROOT%\codeql-tools\baseline-config-empty.json
)

View File

@@ -1,5 +1,7 @@
#!/bin/sh
if [ -f vendor/modules.txt ]; then
cat $CODEQL_EXTRACTOR_GO_ROOT/codeql-tools/baseline-config.json
cat $CODEQL_EXTRACTOR_GO_ROOT/codeql-tools/baseline-config-vendor.json
else
cat $CODEQL_EXTRACTOR_GO_ROOT/codeql-tools/baseline-config-empty.json
fi