Andrew Eisenberg
fba13b0092
More readable error message for invalid queries block
...
When someone creates an invalid `queries` entry in the codeql config
file, like this:
```
queries:
- foo.ql
```
THe error message is confusing, looking like this:
```
Error: Cannot use 'in' operator to search for 'uses' in ql/ql/src
TypeError: Cannot use 'in' operator to search for 'uses' in ql/ql/src
at loadConfig (/home/runner/work/_actions/github/codeql-action/71a8b35ff4c80fcfcd05bc1cd932fe3c08f943ca/lib/config-utils.js:577:41)
```
With this change, the error message is more comprehensible:
`queries must be an array, with each entry having a 'uses' property`
2022-08-15 07:56:00 -07:00
Henry Mercer
af9d911fb5
Merge remote-tracking branch 'origin/main' into henrymercer/codeql-cli-2.10.3
2022-08-15 14:40:51 +01:00
Henry Mercer
1e8043f69c
Update default CodeQL version to 2.10.3
2022-08-12 10:43:51 +01:00
Andrew Eisenberg
fa2bc211fd
Merge branch 'aeisenberg/unrevert-query-filters' into aeisenberg/fix-config-files
2022-08-11 14:57:16 -07:00
Andrew Eisenberg
bcf47202b5
Merge remote-tracking branch 'upstream/main' into aeisenberg/unrevert-query-filters
2022-08-11 11:37:55 -07:00
Andrew Eisenberg
072cd929a3
Merge remote-tracking branch 'upstream/main' into aeisenberg/unrevert-query-filters
2022-08-11 10:00:12 -07:00
Andrew Eisenberg
d74f663ed4
Merge remote-tracking branch 'upstream/main' into aeisenberg/fix-config-files
2022-08-11 09:57:45 -07:00
Andrew Eisenberg
a09a029937
Fix failing test and address PR comments
2022-08-11 09:56:08 -07:00
Chris Gavin
07e8996e91
Merge main into local.
2022-08-11 17:11:05 +01:00
Chris Gavin
7c6fa5ce8a
Remove an unneeded if.
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2022-08-11 17:10:50 +01:00
Angela P Wen
79b933c459
Remove review comments
2022-08-11 16:47:31 +02:00
Angela P Wen
cf7f893f9c
Make file paths OS-agnostic
2022-08-11 16:46:56 +02:00
Angela P Wen
172eca420d
Improve doesDirectoryExist test
2022-08-11 16:08:06 +02:00
Angela P Wen
26cafd2f92
Add unit tests for post: hook run methods
2022-08-11 16:01:37 +02:00
Angela P Wen
15608ceae3
Merge remote-tracking branch 'origin/main' into angelapwen/post-init-cleanup
2022-08-11 15:24:10 +02:00
Angela P Wen
6fdaff6eb6
Improve file system unit tests
2022-08-11 15:09:44 +02:00
Angela P Wen
4e121c0ef5
Address additional review comments
2022-08-11 13:58:01 +02:00
Angela P Wen
d909f714fb
Update comment wording
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2022-08-11 13:46:55 +02:00
Angela P Wen
65d6ee0c51
Address review comments
2022-08-11 13:45:26 +02:00
Chris Gavin
bbdc9efa94
Use the API URL from the environment if it is present.
2022-08-11 08:38:11 +01:00
Andrew Eisenberg
2314063848
Add the defaultAugmentationProperties constant
...
This makes some syntax in tests somewhat simpler.
2022-08-10 15:42:45 -07:00
Andrew Eisenberg
0403fb7d8c
Merge branch 'main' into aeisenberg/fix-config-files
2022-08-10 15:39:35 -07:00
Andrew Eisenberg
44f42da9ca
Merge branch 'main' into aeisenberg/unrevert-query-filters
2022-08-10 15:22:40 -07:00
Andrew Eisenberg
a6d09016e7
Merge pull request #1171 from crenshaw-dev/clarify-category-error-message
...
fix: clarify upload-sarify category uniqueness error message
2022-08-10 13:24:16 -07:00
Angela P Wen
3c4f458a1a
Re-declare codeql var
2022-08-10 15:08:35 +02:00
Angela P Wen
90676d9cb9
Merge remote-tracking branch 'origin/main' into angelapwen/post-init-cleanup
2022-08-10 15:08:04 +02:00
Angela P Wen
484a72c924
Add utilities unit tests
2022-08-10 14:57:57 +02:00
Edoardo Pirovano
3835e64c38
Remove distrust of GITHUB_ACTION_REF for local actions
2022-08-10 09:39:03 +01:00
Edoardo Pirovano
6df93613d7
Address review comments from @henrymercer
2022-08-09 18:37:22 +01:00
Angela P Wen
010abe7de0
Merge remote-tracking branch 'origin/main' into angelapwen/post-init-cleanup
2022-08-08 13:41:15 +02:00
Edoardo Pirovano
8f867dcb21
Introduce TRAP caching
2022-08-05 17:48:05 +01:00
CI
0e3ae6e68a
fix: clarify upload-sarify category uniqueness error message
2022-08-05 10:59:35 -04:00
Angela P Wen
7f86ddc26d
Move debug log printing back to actions util
2022-08-02 12:41:08 +02:00
Angela P Wen
a758ec55e8
Add more info messages to user, rename log printing function
2022-08-02 12:36:56 +02:00
Angela P Wen
eeee462f05
Move debug artifact methods into separate file
2022-08-02 12:27:52 +02:00
Angela P Wen
5895ab0c0b
Address more PR comments, refactoring
2022-08-02 12:18:44 +02:00
Angela P Wen
44a27e6a51
Add top level comments, rename cleanup to post
2022-08-02 12:08:18 +02:00
Angela P Wen
a557279135
Clean up syntax per PR review
2022-08-02 12:01:02 +02:00
Angela P Wen
daaac4306e
Linting, node_modules update
2022-08-01 13:35:10 +02:00
Angela P Wen
5229df1eef
Add unit test descriptions
2022-08-01 13:17:40 +02:00
Angela P Wen
5da7870265
Refactoring per PR comments
2022-08-01 12:52:16 +02:00
Angela P Wen
8a4a573d59
Error handling for JSON parsing
2022-08-01 12:12:49 +02:00
Angela P Wen
6630cbeccb
Minor syntax update
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2022-08-01 11:52:34 +02:00
Angela P Wen
af87cc6ba5
Improve for matrix
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2022-08-01 11:52:03 +02:00
Angela P Wen
ebc59ec8da
More descriptive partial db bundle messages
2022-08-01 11:43:08 +02:00
Angela P Wen
52de49c899
Refactor helper function to util
2022-08-01 11:42:55 +02:00
Angela P Wen
2c25894c5f
Zip partial database directory
2022-08-01 11:24:34 +02:00
Chuan-kai Lin
a5def17768
Update default CodeQL version to 2.10.2
2022-07-29 14:07:22 -07:00
Angela P Wen
2746051310
Catch case where database isn't finalized
2022-07-29 12:00:07 +02:00
Angela P Wen
1016eba538
Move logs, SARIF actions uploads to post: hooks
2022-07-29 11:29:39 +02:00