Marco Gario
4d836f4b5a
fix linter
2020-09-15 15:50:23 +02:00
Marco Gario
b9e8fa6371
Merge remote-tracking branch 'origin/main' into platform_lang_pkg
2020-09-15 15:30:34 +02:00
Chris Raynor
a184d50a26
Running lint-fix
2020-09-14 10:44:43 +01:00
Marco Gario
7b29d2e0a5
Move language functions in dedicated package
2020-09-11 12:02:17 +02:00
Marco Gario
588a28d3b5
Merge remote-tracking branch 'origin/main' into platform_lang_pkg
2020-09-11 11:45:31 +02:00
Marco Gario
3f5bb98d7e
# This is a combination of 4 commits.
...
# This is the 1st commit message:
Add logic to download codeql platform-language pkg
* Add `bundleName` argument to `getCodeQLBundleDownloadURL`
* Add `languages` argument to `setupCodeQL`.
The logic now tries to find the platform-language pkg before defaulting
to the full bundle. We keep the toolcache clean by adding the pl version
to the tool version.
# The commit message #2 will be skipped:
# Add simple fallback logic for download
# The commit message #3 will be skipped:
# wip linter
# The commit message #4 will be skipped:
# linter
2020-09-09 13:52:06 +02:00
Sam Partington
18cd03ab62
Make variable name less ambiguous
2020-09-08 10:14:51 +01:00
Sam Partington
d677f16692
Merge branch 'main' into allow-additive-queries-in-workflow
2020-09-08 10:00:16 +01:00
Robert Brignull
a0b54fc7ab
fix tests
2020-08-28 17:28:05 +01:00
Sam Partington
abf5854149
Extract more common test code to function
2020-08-28 17:20:40 +01:00
Sam Partington
23cf700e38
Extract common test code to a function
...
https://github.com/github/codeql-action/pull/165#discussion_r479396850
2020-08-28 17:13:06 +01:00
Sam Partington
ab8d9eccc9
Add a test which combines workflow queries and disabling the defaults
2020-08-28 16:53:11 +01:00
Sam Partington
82000c26c8
Allow "additive" queries in workflow by prefixing with "+"
...
See discussion on https://github.com/github/code-scanning/issues/1446
2020-08-28 16:45:57 +01:00
Robert Brignull
6f422a4303
add debug mode to limit output
2020-08-27 14:26:44 +01:00
Robert Brignull
39b361ed69
Remove dependence of GITHUB_REPOSITORY env var
2020-08-27 11:06:14 +01:00
Robert Brignull
217483dfd6
Convert rest of the actions
2020-08-26 16:20:36 +01:00
Sam Partington
e997bdf637
Merge branch 'main' into query-overriding
2020-08-25 14:21:33 +01:00
Sam Partington
bdfd48264f
Merge branch 'main' into query-overriding
2020-08-25 10:39:53 +01:00
Esben Sparre Andreasen
eecc25f914
build typescript
2020-08-25 11:22:11 +02:00
Sam Partington
129713f1a0
Handle errors in workflow queries correctly
2020-08-25 10:17:54 +01:00
Sam Partington
7f19f9198a
Refactor common code to function and add missing test
2020-08-24 15:53:24 +01:00
Sam Partington
c6f02973ac
Prevent queries in workflow overriding default queries
...
https://github.com/github/codeql-action/pull/127#pullrequestreview-463207781
2020-08-24 14:42:05 +01:00
Robert Brignull
0e8b30af75
Merge branch 'main' into add_env_to_config
2020-08-21 10:32:58 +01:00
Robert Brignull
038c4ebdf7
add CodeQL cmd to config
2020-08-19 15:57:13 +01:00
Robert Brignull
9c29fe283d
add tempDir and toolCacheDir to config
2020-08-19 15:11:49 +01:00
Robert Brignull
d6fbafb242
add tests
2020-08-17 13:34:55 +01:00
Robert
d5c453c995
mock API request in test
2020-08-07 17:15:46 +01:00
Robert Brignull
657540584e
add tests
2020-08-07 17:02:42 +01:00
Robert Brignull
dc366899d2
Check that the set of queries is non-empty at init time
2020-08-04 10:39:47 +01:00
Sam Partington
f57bf21879
Tidy up test
2020-07-31 11:11:47 +01:00
Sam Partington
7b0f432c26
Add missing JavaScript
...
https://github.com/github/codeql-action/pull/127/checks?check_run_id=915325110
2020-07-30 16:49:50 +01:00
Sam Partington
2da457060b
Allow multiple overriding queries, comma-separated
2020-07-27 16:50:03 +01:00
Sam Partington
95cef22589
Add support for basic query overriding in action file itself
...
See https://github.com/github/dsp-code-scanning/issues/1446
2020-07-27 16:50:03 +01:00
Robert
87758a1402
Upload much more data in status reports
2020-07-24 15:01:44 +01:00
Robert
315a9f4b3c
fix typo
2020-07-21 12:46:19 +01:00
Robert
0446cb0aff
address comments
2020-07-21 12:19:37 +01:00
Robert
29cf06569d
reset environment variables between tests
2020-07-21 11:39:55 +01:00
Robert
ee63f4ee4b
fix parsing of disable-default-queries field
2020-07-21 11:05:23 +01:00
Robert
5b4f4e40af
introduce tests
2020-07-21 10:53:14 +01:00
Robert Brignull
d138b00811
await promise
2020-07-16 09:04:16 +01:00
Robert Brignull
b86c3701ed
address review comments
2020-07-15 17:37:37 +01:00
Robert Brignull
da3d6d25eb
move config parsing earlier + add to codeql search path
2020-07-13 14:49:01 +01:00
Robert Brignull
1a4c658bbf
Merge branch 'main' into lgtm_filters
2020-07-10 15:01:22 +01:00
Robert Brignull
dcebdd6441
give better error messages
2020-07-08 15:06:45 +01:00
Robert Brignull
07caa0f5cf
pull out mockGetContents method
2020-07-07 18:32:29 +01:00
Robert Brignull
0086c2ecdb
use @actions/github
2020-07-06 16:25:26 +01:00
Sam Partington
0607771cc2
Make remote config retrieval more robust
2020-06-26 16:14:15 +01:00
Sam Partington
51becd2cf8
Bring error message method name inline with others
2020-06-26 15:44:57 +01:00
Sam Partington
7c00663f08
Remove tests of internal function now its behaviour has been verified
2020-06-26 14:46:53 +01:00
Sam Partington
f8c87948ab
Use new API client
...
From https://github.com/github/codeql-action/pull/82
2020-06-26 14:45:37 +01:00