mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Always output valid JSON containing paths-ignore
This commit is contained in:
3
go/codeql-tools/baseline-config-empty.json
Normal file
3
go/codeql-tools/baseline-config-empty.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"paths-ignore": []
|
||||
}
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user