codeql-action/lib
Andrew Eisenberg 9b1206e898 Fix a bug in cli config parsing
When the config specifies queries in external repositories and no other
queries and cli config parsing is enabled, the analyze job is not able
to find any queries to run and it fails. This PR fixes the problem.

Also add some logging statements when writing a copy of the user config
file.
2023-01-17 20:59:36 -08:00
..
testdata Avoid analyzing excluded language files for line counting 2021-04-28 16:07:55 -07:00
actions-util.js Update src/actions-util.ts 2023-01-17 15:53:14 -08:00
actions-util.js.map Update src/actions-util.ts 2023-01-17 15:53:14 -08:00
actions-util.test.js Make sure env is reset between tests 2022-12-13 12:18:40 +00:00
actions-util.test.js.map Make sure env is reset between tests 2022-12-13 12:18:40 +00:00
analysis-paths.js Remove toolcache decorator 2022-06-30 09:16:10 +01:00
analysis-paths.js.map Remove toolcache decorator 2022-06-30 09:16:10 +01:00
analysis-paths.test.js Add telemetry for TRAP caching 2022-08-16 11:54:31 +01:00
analysis-paths.test.js.map Add telemetry for TRAP caching 2022-08-16 11:54:31 +01:00
analyze-action-env.test.js Fixes spurious error messages in tests 2022-11-29 10:53:11 -08:00
analyze-action-env.test.js.map Fixes spurious error messages in tests 2022-11-29 10:53:11 -08:00
analyze-action-input.test.js Fixes spurious error messages in tests 2022-11-29 10:53:11 -08:00
analyze-action-input.test.js.map Fixes spurious error messages in tests 2022-11-29 10:53:11 -08:00
analyze-action-post-helper.js Remove review comments 2022-08-11 16:47:31 +02:00
analyze-action-post-helper.js.map Remove review comments 2022-08-11 16:47:31 +02:00
analyze-action-post-helper.test.js Add unit tests for post: hook run methods 2022-08-11 16:01:37 +02:00
analyze-action-post-helper.test.js.map Add unit tests for post: hook run methods 2022-08-11 16:01:37 +02:00
analyze-action-post.js Add unit tests for post: hook run methods 2022-08-11 16:01:37 +02:00
analyze-action-post.js.map Add unit tests for post: hook run methods 2022-08-11 16:01:37 +02:00
analyze-action.js Check for successful completion rather than SARIF upload 2022-12-21 11:40:31 +00:00
analyze-action.js.map Check for successful completion rather than SARIF upload 2022-12-21 11:40:31 +00:00
analyze.js Fix a bug in cli config parsing 2023-01-17 20:59:36 -08:00
analyze.js.map Fix a bug in cli config parsing 2023-01-17 20:59:36 -08:00
analyze.test.js Remove lines of code counting in the Action 2022-11-11 19:00:45 +00:00
analyze.test.js.map Remove lines of code counting in the Action 2022-11-11 19:00:45 +00:00
api-client.js Remove unneeded apiDetails input to getApiClient 2022-11-14 19:55:30 +00:00
api-client.js.map Remove unneeded apiDetails input to getApiClient 2022-11-14 19:55:30 +00:00
api-client.test.js Remove unneeded apiDetails input to getApiClient 2022-11-14 19:55:30 +00:00
api-client.test.js.map Remove unneeded apiDetails input to getApiClient 2022-11-14 19:55:30 +00:00
api-compatibility.json Update supported GitHub Enterprise Server versions. 2022-11-23 00:13:03 +00:00
autobuild-action.js Merge branch 'main' into henrymercer/delete-runner-part-2 2022-11-15 19:35:30 +00:00
autobuild-action.js.map Merge branch 'main' into henrymercer/delete-runner-part-2 2022-11-15 19:35:30 +00:00
autobuild.js Deprecate Go extraction reconciliation feature flag and CODEQL_EXTRACTOR_GO_BUILD_TRACING for custom builds (#1322) 2022-11-14 13:54:35 -08:00
autobuild.js.map Deprecate Go extraction reconciliation feature flag and CODEQL_EXTRACTOR_GO_BUILD_TRACING for custom builds (#1322) 2022-11-14 13:54:35 -08:00
codeql.js Fix a bug in cli config parsing 2023-01-17 20:59:36 -08:00
codeql.js.map Fix a bug in cli config parsing 2023-01-17 20:59:36 -08:00
codeql.test.js Add JSDoc for mockDownloadApi 2023-01-11 15:25:21 +00:00
codeql.test.js.map Add JSDoc for mockDownloadApi 2023-01-11 15:25:21 +00:00
config-utils.js Send the external repository token to the CLI 2023-01-06 14:46:28 -08:00
config-utils.js.map Send the external repository token to the CLI 2023-01-06 14:46:28 -08:00
config-utils.test.js Add API call for languages if java in input 2022-11-24 11:06:29 -08:00
config-utils.test.js.map Add API call for languages if java in input 2022-11-24 11:06:29 -08:00
database-upload.js Close stream after use 2023-01-09 11:00:43 +00:00
database-upload.js.map Close stream after use 2023-01-09 11:00:43 +00:00
database-upload.test.js Remove concept of Actions / runner mode 2022-11-14 16:37:48 +00:00
database-upload.test.js.map Remove concept of Actions / runner mode 2022-11-14 16:37:48 +00:00
debug-artifacts.js Address review comments 2022-08-11 13:45:26 +02:00
debug-artifacts.js.map Address review comments 2022-08-11 13:45:26 +02:00
debug-artifacts.test.js Add utilities unit tests 2022-08-10 14:57:57 +02:00
debug-artifacts.test.js.map Add utilities unit tests 2022-08-10 14:57:57 +02:00
defaults.json Rebuild 2023-01-06 12:32:23 -05:00
error-matcher.js Surface fatal CLI errors in interpret-results and run-queries (#1407) 2022-12-02 14:05:21 +01:00
error-matcher.js.map Surface fatal CLI errors in interpret-results and run-queries (#1407) 2022-12-02 14:05:21 +01:00
error-matcher.test.js Surface fatal CLI errors in interpret-results and run-queries (#1407) 2022-12-02 14:05:21 +01:00
error-matcher.test.js.map Surface fatal CLI errors in interpret-results and run-queries (#1407) 2022-12-02 14:05:21 +01:00
external-queries.js Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
external-queries.js.map Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
external-queries.test.js Use the API URL from the environment if it is present. 2022-08-11 08:38:11 +01:00
external-queries.test.js.map Use the API URL from the environment if it is present. 2022-08-11 08:38:11 +01:00
feature-flags.js Send the external repository token to the CLI 2023-01-06 14:46:28 -08:00
feature-flags.js.map Enable file baseline export by default 2022-12-05 14:10:06 +00:00
feature-flags.test.js Add extra test ensuring env var overrides cached feature flag 2022-11-21 14:30:36 -08:00
feature-flags.test.js.map Add extra test ensuring env var overrides cached feature flag 2022-11-21 14:30:36 -08:00
fingerprints.js Handle Windows absolute paths in resolveUriToFile 2022-06-29 18:59:33 +01:00
fingerprints.js.map Handle Windows absolute paths in resolveUriToFile 2022-06-29 18:59:33 +01:00
fingerprints.test.js Handle Windows absolute paths in resolveUriToFile 2022-06-29 18:59:33 +01:00
fingerprints.test.js.map Handle Windows absolute paths in resolveUriToFile 2022-06-29 18:59:33 +01:00
init-action-post-helper.js Remove redundant log messages 2022-12-22 18:47:52 +00:00
init-action-post-helper.js.map Remove redundant log messages 2022-12-22 18:47:52 +00:00
init-action-post-helper.test.js Add more tests for uploading failed SARIF 2022-12-22 18:48:59 +00:00
init-action-post-helper.test.js.map Add more tests for uploading failed SARIF 2022-12-22 18:48:59 +00:00
init-action-post.js Remove debugging log statements 2022-12-12 17:59:20 +00:00
init-action-post.js.map Remove debugging log statements 2022-12-12 17:59:20 +00:00
init-action.js Merge branch 'main' into henrymercer/parse-category 2022-11-25 09:58:27 +00:00
init-action.js.map Merge branch 'main' into henrymercer/parse-category 2022-11-25 09:58:27 +00:00
init.js Refactor CodeQL setup 2023-01-05 19:09:34 +00:00
init.js.map Refactor CodeQL setup 2023-01-05 19:09:34 +00:00
languages.js Add some new tests and fix some comments 2022-11-23 22:18:12 -08:00
languages.js.map Add some new tests and fix some comments 2022-11-23 22:18:12 -08:00
languages.test.js Add some new tests and fix some comments 2022-11-23 22:18:12 -08:00
languages.test.js.map Add some new tests and fix some comments 2022-11-23 22:18:12 -08:00
logging.js Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
logging.js.map Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
repository.js Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
repository.js.map Rebuild after TypeScript version bump 2021-07-27 17:59:59 +01:00
shared-environment.js Check for successful completion rather than SARIF upload 2022-12-21 11:40:31 +00:00
shared-environment.js.map Check for successful completion rather than SARIF upload 2022-12-21 11:40:31 +00:00
testing-utils.js Fix GHAE CodeQL setup test 2023-01-10 19:36:29 +00:00
testing-utils.js.map Fix GHAE CodeQL setup test 2023-01-10 19:36:29 +00:00
toolrunner-error-catcher.js Surface fatal CLI errors in interpret-results and run-queries (#1407) 2022-12-02 14:05:21 +01:00
toolrunner-error-catcher.js.map Surface fatal CLI errors in interpret-results and run-queries (#1407) 2022-12-02 14:05:21 +01:00
toolrunner-error-catcher.test.js Surface fatal CLI errors in interpret-results and run-queries (#1407) 2022-12-02 14:05:21 +01:00
toolrunner-error-catcher.test.js.map Surface fatal CLI errors in interpret-results and run-queries (#1407) 2022-12-02 14:05:21 +01:00
tracer-config.js Deprecate Go extraction reconciliation feature flag and CODEQL_EXTRACTOR_GO_BUILD_TRACING for custom builds (#1322) 2022-11-14 13:54:35 -08:00
tracer-config.js.map Deprecate Go extraction reconciliation feature flag and CODEQL_EXTRACTOR_GO_BUILD_TRACING for custom builds (#1322) 2022-11-14 13:54:35 -08:00
tracer-config.test.js Deprecate Go extraction reconciliation feature flag and CODEQL_EXTRACTOR_GO_BUILD_TRACING for custom builds (#1322) 2022-11-14 13:54:35 -08:00
tracer-config.test.js.map Deprecate Go extraction reconciliation feature flag and CODEQL_EXTRACTOR_GO_BUILD_TRACING for custom builds (#1322) 2022-11-14 13:54:35 -08:00
trap-caching.js TRAP Caching: Re-introduce workaround for download timeout 2022-11-16 15:49:52 +00:00
trap-caching.js.map TRAP Caching: Re-introduce workaround for download timeout 2022-11-16 15:49:52 +00:00
trap-caching.test.js TRAP Caching: Skip uploading of small caches 2022-09-23 15:22:31 +01:00
trap-caching.test.js.map TRAP Caching: Skip uploading of small caches 2022-09-23 15:22:31 +01:00
upload-lib.js Only print the full error message in debug mode 2022-12-02 14:38:40 +00:00
upload-lib.js.map Only print the full error message in debug mode 2022-12-02 14:38:40 +00:00
upload-lib.test.js Remove dead guard for GHES 3.0 2022-11-23 13:57:07 +00:00
upload-lib.test.js.map Remove dead guard for GHES 3.0 2022-11-23 13:57:07 +00:00
upload-sarif-action.js Upload failed SARIF files to Code Scanning 2022-11-25 17:52:50 +00:00
upload-sarif-action.js.map Upload failed SARIF files to Code Scanning 2022-11-25 17:52:50 +00:00
util.js Upload failed SARIF files to Code Scanning 2022-11-25 17:52:50 +00:00
util.js.map Upload failed SARIF files to Code Scanning 2022-11-25 17:52:50 +00:00
util.test.js Add API call for languages if java in input 2022-11-24 11:06:29 -08:00
util.test.js.map Add API call for languages if java in input 2022-11-24 11:06:29 -08:00
workflow.js Improve error message when workflow file doesn't exist 2022-12-21 11:40:31 +00:00
workflow.js.map Improve error message when workflow file doesn't exist 2022-12-21 11:40:31 +00:00
workflow.test.js Allow testing workflow parsing functionality from PR checks 2022-12-06 18:37:25 +00:00
workflow.test.js.map Allow testing workflow parsing functionality from PR checks 2022-12-06 18:37:25 +00:00