mirror of
https://github.com/github/codeql-action.git
synced 2025-12-11 18:24:43 +08:00
Add an integration test for packaging
Uses two pre-existing packages to run some simple queries on a javascript database.
This commit is contained in:
5
lib/codeql.js
generated
5
lib/codeql.js
generated
@@ -528,7 +528,10 @@ function getCodeQLForCmd(cmd) {
|
||||
try {
|
||||
const parsedOutput = JSON.parse(output);
|
||||
if (Array.isArray(parsedOutput.packs) &&
|
||||
parsedOutput.packs.every((p) => p.name && p.version)) {
|
||||
// TODO PackDownloadOutput will not include the version if it is not specified
|
||||
// in the input. The version is always the latest version available.
|
||||
// It should be added to the output, but this requires a CLI change
|
||||
parsedOutput.packs.every((p) => p.name /* && p.version */)) {
|
||||
return parsedOutput;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user