fix parsing of disable-default-queries field
This commit is contained in:
parent
5b4f4e40af
commit
ee63f4ee4b
6 changed files with 31 additions and 8 deletions
9
lib/config-utils.test.js
generated
9
lib/config-utils.test.js
generated
|
|
@ -290,6 +290,15 @@ function doInvalidInputTest(testName, inputFileContents, expectedErrorMessageGen
|
|||
return await util.withTmpDir(async (tmpDir) => {
|
||||
process.env['RUNNER_TEMP'] = tmpDir;
|
||||
process.env['GITHUB_WORKSPACE'] = tmpDir;
|
||||
CodeQL.setCodeQL({
|
||||
resolveQueries: async function () {
|
||||
return {
|
||||
byLanguage: {},
|
||||
noDeclaredLanguage: {},
|
||||
multipleDeclaredLanguages: {},
|
||||
};
|
||||
},
|
||||
});
|
||||
const inputFile = path.join(tmpDir, 'input');
|
||||
fs.writeFileSync(inputFile, inputFileContents, 'utf8');
|
||||
setInput('config-file', 'input');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue