codeql-action/lib
Andrew Eisenberg 86a804f9a7 Allow the codeql-action to run packages
This commit adds a `packs` option to the codeql-config.yml file. Users
can specify a list of ql packs to include in the analysis.

For a single language analysis, the packs property looks like this:

```yaml
packs:
  - pack-scope/pack-name1@1.2.3
  - pack-scope/pack-name2   # no explicit version means download the latest
```

For multi-language analysis, you must key the packs block by lanaguage:

```yaml
packs:
  cpp:
    - pack-scope/pack-name1@1.2.3
    - pack-scope/pack-name2
  java:
    - pack-scope/pack-name3@1.2.3
    - pack-scope/pack-name4
```

This implementation adds a new analysis run (alongside custom and 
builtin runs). The unit tests indicate that the correct commands are
being run, but I have not actually tried this with a real CLI.

Also, convert `instanceof Array` to `Array.isArray` since that is
sightly better in some situations. See:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#instanceof_vs_isarray
2021-06-03 15:46:40 -07:00
..
testdata Avoid analyzing excluded language files for line counting 2021-04-28 16:07:55 -07:00
actions-util.js Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
actions-util.js.map Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
actions-util.test.js Remove local environment running 2021-06-02 11:26:11 -07:00
actions-util.test.js.map Remove local environment running 2021-06-02 11:26:11 -07:00
analysis-paths.js Fix spelling errors 2021-03-18 09:40:47 -07:00
analysis-paths.js.map Run npm run lint-fix. 2020-10-05 12:44:58 +01:00
analysis-paths.test.js Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
analysis-paths.test.js.map Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
analyze-action.js Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
analyze-action.js.map Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
analyze.js Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
analyze.js.map Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
analyze.test.js Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
analyze.test.js.map Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
api-client.js Remove local environment running 2021-06-02 11:26:11 -07:00
api-client.js.map Remove local environment running 2021-06-02 11:26:11 -07:00
api-client.test.js Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
api-client.test.js.map Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
api-compatibility.json Update supported GitHub Enterprise Server versions. 2021-06-02 00:23:42 +00:00
autobuild-action.js Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
autobuild-action.js.map Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
autobuild.js Switching to import/order instead of sort-imports 2020-10-01 11:03:46 +01:00
autobuild.js.map Switching to import/order instead of sort-imports 2020-10-01 11:03:46 +01:00
codeql.js Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
codeql.js.map Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
codeql.test.js Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
codeql.test.js.map Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
config-utils.js Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
config-utils.js.map Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
config-utils.test.js Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
config-utils.test.js.map Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
count-loc.js Add Ruby as a possible language 2021-05-21 18:45:08 +02:00
count-loc.js.map Add Ruby as a possible language 2021-05-21 18:45:08 +02:00
count-loc.test.js Change include path for lines of code counting 2021-05-13 12:05:01 -07:00
count-loc.test.js.map Change include path for lines of code counting 2021-05-13 12:05:01 -07:00
defaults.json Update CodeQL bundle to 20210517 / 2.5.5 2021-05-17 20:38:22 +02:00
error-matcher.js Merge branch 'main' into nickfyson/error_wrapper 2020-09-14 13:30:37 +01:00
error-matcher.js.map Merge branch 'main' into nickfyson/error_wrapper 2020-09-14 13:30:37 +01:00
error-matcher.test.js Merge branch 'main' into nickfyson/error_wrapper 2020-09-14 13:30:37 +01:00
error-matcher.test.js.map Merge branch 'main' into nickfyson/error_wrapper 2020-09-14 13:30:37 +01:00
external-queries.js only insert external repos token if supplied 2021-01-19 15:42:57 +00:00
external-queries.js.map only insert external repos token if supplied 2021-01-19 15:42:57 +00:00
external-queries.test.js only insert external repos token if supplied 2021-01-19 15:42:57 +00:00
external-queries.test.js.map only insert external repos token if supplied 2021-01-19 15:42:57 +00:00
fingerprints.js fix typos in logging 2021-05-06 09:26:42 +01:00
fingerprints.js.map fix typos in logging 2021-05-06 09:26:42 +01:00
fingerprints.test.js Avoid fingerprinting directories 2021-05-05 13:37:17 -07:00
fingerprints.test.js.map Avoid fingerprinting directories 2021-05-05 13:37:17 -07:00
init-action.js Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
init-action.js.map Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
init.js Send the version and mode with the user agent 2021-05-31 09:03:29 -07:00
init.js.map Send the version and mode with the user agent 2021-05-31 09:03:29 -07:00
languages.js Add Ruby as a possible language 2021-05-21 18:45:08 +02:00
languages.js.map Add Ruby as a possible language 2021-05-21 18:45:08 +02:00
languages.test.js Run npm run build 2020-11-20 11:35:59 +01:00
languages.test.js.map Switching to import/order instead of sort-imports 2020-10-01 11:03:46 +01:00
logging.js Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
logging.js.map Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
repository.js Running lint-fix 2020-09-14 10:44:43 +01:00
repository.js.map commit node_modules and generated files 2020-08-11 12:43:27 +01:00
runner.js Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
runner.js.map Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
shared-environment.js Running lint-fix 2020-09-14 10:44:43 +01:00
shared-environment.js.map remove should_abort method 2020-08-07 16:56:04 +01:00
testing-utils.js Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
testing-utils.js.map Introduce our own toolcache implementation for use by the runnner 2021-04-22 15:31:15 +01:00
toolcache.js Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
toolcache.js.map Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
toolrunner-error-catcher.js Run npm run build 2020-11-20 11:35:59 +01:00
toolrunner-error-catcher.js.map Run npm run build 2020-11-20 11:35:59 +01:00
toolrunner-error-catcher.test.js Merge branch 'main' into nickfyson/error_wrapper 2020-09-14 13:30:37 +01:00
toolrunner-error-catcher.test.js.map Switching to import/order instead of sort-imports 2020-10-01 11:03:46 +01:00
tracer-config.js Add configuration option to set CodeQL DB location 2021-05-18 00:13:36 +01:00
tracer-config.js.map Add configuration option to set CodeQL DB location 2021-05-18 00:13:36 +01:00
tracer-config.test.js Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
tracer-config.test.js.map Allow the codeql-action to run packages 2021-06-03 15:46:40 -07:00
upload-lib.js Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
upload-lib.js.map Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
upload-lib.test.js Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
upload-lib.test.js.map Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
upload-sarif-action.js Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
upload-sarif-action.js.map Add environment variables to signal feature and version to the CLI 2021-06-02 11:06:02 -07:00
util.js Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
util.js.map Cleaning up comments around env vars 2021-06-03 11:33:20 -07:00
util.test.js Remove local environment running 2021-06-02 11:26:11 -07:00
util.test.js.map Remove local environment running 2021-06-02 11:26:11 -07:00