Henry Mercer
c736697abf
Remove toolcache decorator
...
This decorator enabled us to use the functionality of the Actions
toolcache within the runner too.
Now that we've deleted the runner we no longer need it.
2022-06-30 09:16:10 +01:00
Arthur Baars
cae9a1f462
Run npm build
2022-06-27 16:40:40 +02:00
Cornelius Riemenschneider
9e9a8428c3
Introduce a feature-flag to enable/disable lua-based tracing.
...
This allows us to gradually roll out (or even roll back)
Lua-based tracing in case problems occur.
2022-05-16 09:16:38 +00:00
Edoardo Pirovano
07990f07e5
Revert "Revert "Use --codescanning-config flag of CLI""
...
This reverts commit 326e5118c5 .
2022-03-01 14:33:00 +00:00
Andrew Eisenberg
3d93bb2ac9
Add UserError
...
This commit adds a `UserError` class that should be thrown when the
cause of an error is fundamentally from user configuration.
When sending status reports, avoid sending a `failure` for `UserError`s.
This will prevent our diagnostics from pinging us for errors outside of
our control.
2022-02-17 11:47:31 -08:00
Edoardo Pirovano
326e5118c5
Revert "Use --codescanning-config flag of CLI"
...
This reverts commit 0d87b8c615 .
2022-02-17 13:05:55 +00:00
Edoardo Pirovano
0d87b8c615
Use --codescanning-config flag of CLI
2022-02-16 13:34:47 +00:00
Andrew Eisenberg
51126e5cd1
Include better error message
...
When users call init multiple times.
2022-01-20 10:28:11 -08:00
Edoardo Pirovano
e677af3fd0
Make name of debugging artifact and DB within it configurable
2022-01-07 15:10:26 +00:00
Henry Mercer
2f4be8e34b
Run ML-powered queries for JS security-extended behind feature flag
2022-01-06 11:57:33 +00:00
Edoardo Pirovano
bc31f604d3
Add an option to upload some debugging artifacts
2021-11-01 16:12:50 +00:00
Edoardo Pirovano
1f4460b9fb
Make use of multi-language and indirect tracing
2021-09-22 16:12:23 +01:00
Andrew Eisenberg
40568daca8
Fix compile errors introduced by typescript 4.4.2
...
4.4.2 introduces a breaking change that the variable in a catch clause
is now `unknown` type. So, we need to cast the `e`, `err`, or `error`
variables to type `Error`.
2021-09-10 14:06:27 -07:00
Edoardo Pirovano
70d2efc353
Enforce a minimum version of CodeQL CLI
2021-08-18 11:48:12 +01:00
Edoardo Pirovano
d9849b8ca1
Rebuild after TypeScript version bump
2021-07-27 17:59:59 +01:00
Arthur Baars
f94f1ed663
Rename checkoutPath to either workspacePath or sourceRoot
2021-07-14 13:39:45 +02:00
Edoardo Pirovano
cc14f298d6
Install Python tools on self-hosted runners
2021-07-13 17:24:11 +01:00
Mario Campos
42babdf2c1
Add 'source-root' input to init action
...
This input is exposed in the CodeQL CLI as the flag --source-root, allowing
users of the CLI to set --source-root different from --working-dir. However,
in codeql-action, these two paths are conflated and it poses problems for
users with complicated build environments, in which a source root may be
a child of the working directory.
Most users should not notice this, as the default value is
${{ github.workspace }}, as it is implied now (`path.resolve()`).
2021-06-29 15:16:32 -05:00
Andrew Eisenberg
6e577cfca3
Add new packs input to init action
...
This input allows users to specify which packs to run. It works in
unison with the packs block of the config file and it is similar to
how `queries` works. They both use `+` in the same way.
Note that the `#TODO` in the pr check is still around, but the CLI
is available. I will remove the TODO in the next commit.
2021-06-23 16:08:35 -07:00
Andrew Eisenberg
47588796b4
Send the version and mode with the user agent
...
This commit changes the way the action determines if running in action
or runner mode. There is now an environment variable that is set at the
beginning of the process and elsewhere in the process, we can check to
see if the variable is set.
2021-05-31 09:03:29 -07:00
Edoardo Pirovano
79c79f1be5
Add configuration option to set CodeQL DB location
2021-05-18 00:13:36 +01:00
Robert
8c91ba83e2
Introduce our own toolcache implementation for use by the runnner
2021-04-22 15:31:15 +01:00
Josh Soref
c4fced7348
Fix spelling errors
...
spelling: executable
spelling: github
spelling: javascript
spelling: latest
spelling: occurred
spelling: parameter
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
2021-03-18 09:40:47 -07:00
Robert
d698cb3d2b
Make unguarded-action-lib better at ignoring uses of toolcache
2021-03-16 13:14:17 +00:00
Chris Gavin
bb51ece0b4
When downloading the CodeQL bundle, only use the GitHub AE endpoint on GitHub AE, and check it first.
2021-03-07 11:18:54 +00:00
Robin Neatherway
dff118f7ad
Use version information to construct payload
2020-11-30 16:45:18 +00:00
Robert
81a21bfa1e
Request meta endpoint at the start of execution
2020-11-26 17:54:46 +00:00
Sam Partington
20567b5888
Introduce parameter object for API params that travel together
2020-11-23 14:39:01 +00:00
Eric Cornelissen
5416d4f3b5
Run npm run build
2020-11-20 11:35:59 +01:00
Chris Gavin
726cfc8441
Ensure unqualified program names are present on PATH before executing them.
2020-11-18 22:20:13 +00:00
Robert
80b43ca9d3
send action ref and tool version in status reports
2020-11-12 12:27:31 +00:00
Robert
aae4713a4d
detect Agent.Worker.exe
2020-11-10 16:16:58 +00:00
Chris Gavin
1220ae5bfd
Log a warning if the API version is not supported.
2020-10-30 12:20:06 +00:00
David Verdeguer
2391771a3f
Allow installing python deps on mac
2020-10-19 12:45:33 +02:00
David Verdeguer
e3d2d4afc4
Add call to py
2020-10-08 12:14:41 +02:00
David Verdeguer
735ec7d414
Add powershell to call
2020-10-08 12:06:29 +02:00
David Verdeguer
e97bdbdfac
Combine auto_install scripts
2020-10-07 12:55:02 +02:00
David Verdeguer
0f2fa46e3c
Update installPythonDeps for windows
2020-10-06 14:37:35 +02:00
David Verdeguer
55eb02cb0a
Merge branch 'main' into daverlo/python
2020-10-05 08:05:16 +02:00
Chris Raynor
122c9b7f24
Switching to import/order instead of sort-imports
2020-10-01 11:03:46 +01:00
Chris Raynor
228546a1e5
Resolve violations of sort-imports lint
...
Resolves #206
2020-09-29 14:43:37 +01:00
David Verdeguer
5419fcd735
Improve warning message
2020-09-25 11:28:57 +02:00
David Verdeguer
147734591c
Check platform before installing python tools
2020-09-23 17:49:39 +02:00
David Verdeguer
23a1a65b43
Merge branch 'main' into daverlo/python-v2
2020-09-23 09:27:54 +02:00
Chris Raynor
a184d50a26
Running lint-fix
2020-09-14 10:44:43 +01:00
David Verdeguer
8cea21575c
Install python deps on init
2020-09-11 10:53:41 +02:00
Robert Brignull
7d9c81f55c
Print final process we choose
2020-09-07 17:23:35 +01:00
Robert Brignull
694fa2d961
add options to specify process name or level to trace
2020-09-07 13:36:47 +01:00
Robert Brignull
48df01325b
add alternative script for in runner mode
2020-09-02 15:50:37 +01:00
Robert Brignull
5c0bd22d01
set -ExecutionPolicy Bypass
2020-09-02 15:50:23 +01:00