Chris Gavin
c9ca4ec1bd
Convert GitHub variant to an enum.
2021-02-15 09:30:16 +00:00
Chris Gavin
0656b2c1ad
Add detection for GitHub AE.
2021-02-13 11:06:03 +00:00
Sam Partington
19fe854945
Remove intermediate variables
2021-01-28 15:40:42 +00:00
Sam Partington
c2377b2e49
Remove parameters from uploadFromActions
...
Retrieve the relevant values in the method itself instead.
2021-01-28 15:37:09 +00:00
Robin Neatherway
369cad8272
Use the fully qualified ref name
2021-01-13 12:16:10 +00:00
Robin Neatherway
884ee1d129
Correct typo in setting upload base ref
2021-01-13 12:00:33 +00:00
Sam Partington
4e46a490ae
Merge branch 'main' into split-upload-method
2021-01-06 11:13:51 +00:00
Sam Partington
54e0c67332
Revert "Retrieve GitHubVersion when used rather than passing around"
...
This reverts commit 6de1b753c2 .
https://github.com/github/codeql-action/pull/323#discussion_r551960301
2021-01-06 11:06:01 +00:00
Robert
bd4e3adfd9
Add test of finding SARIF files recursively
2021-01-04 13:12:30 +00:00
Chao Zhang
55eae6652f
Support find .sarif files recursively
2020-12-22 23:24:51 -08:00
Sam Partington
6de1b753c2
Retrieve GitHubVersion when used rather than passing around
2020-12-22 11:49:42 +00:00
Sam Partington
82a8fa443e
Merge branch 'main' into split-upload-method
2020-12-22 11:23:49 +00:00
Robin Neatherway
d99e994194
Fix test to be immune to running on Actions
2020-11-30 18:35:55 +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
57514f31db
Split upload method into two mode-specific ones
2020-11-26 11:50:57 +00:00
Sam Partington
20567b5888
Introduce parameter object for API params that travel together
2020-11-23 14:39:01 +00:00
Eric Cornelissen
847f4ef293
Run npm run build
2020-11-19 23:03:45 +01:00
Chris Gavin
865b4bd832
Pass a logger in to getApiClient() rather than constructing one there.
2020-11-02 08:53:25 +00:00
Chris Gavin
1220ae5bfd
Log a warning if the API version is not supported.
2020-10-30 12:20:06 +00: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
Michael Huynh
476bf863f2
Resolve violations of no-throw-literal lint
...
Resolves #204
2020-09-25 17:39:25 +08:00
Chris Gavin
31c2eca167
Fix retrying uploads by using Octokit retry plugin.
2020-09-21 19:15:19 +01:00
Michael Huynh
4666a0eed0
Resolve violations of github/array-foreach lint
...
Resolves #199
2020-09-20 17:41:27 +08:00
Chris Raynor
a184d50a26
Running lint-fix
2020-09-14 10:44:43 +01:00
Robert Brignull
217483dfd6
Convert rest of the actions
2020-08-26 16:20:36 +01:00
Robert Brignull
09677dada5
rename CLI to runner
2020-08-25 17:44:30 +01:00
Robert Brignull
d49b8673bb
fix alerts
2020-08-17 12:42:23 +01:00
Robert Brignull
4b56177c28
Re-throw errors
2020-08-12 18:06:34 +01:00
Robert Brignull
5b0aafadb1
address comments
2020-08-12 17:42:47 +01:00
Robert Brignull
34b372292b
commit node_modules and generated files
2020-08-11 12:43:27 +01:00
Andrew Eisenberg
42235cc048
Allow the codeql-action to be run locally ( #117 )
...
* Allow the codeql-action to be run locally
This change allows the codeql-action to be run locally through
[act](https://github.com/nektos/act ).
In order to run the action locally, you need to do two things:
1. Add the `CODEQL_LOCAL_RUN: true` environment variable. The only way
I could figure out how to do this was to add it directly in the
workflow file in an `env` block. It _should_ be possible to add it
through a `.env` file and pass it to `act`, but I couldn't get it
working.
2. Run this command `act -j codeql -s GITHUB_TOKEN=<MY_PAT>`
Setting the `CODEQL_LOCAL_RUN` env var will fill in missing env vars
that the action needs, but isn't set by `act`. It will also avoid
making api calls to github that would fail locally.
This is a refactoring discussed in
https://github.com/github/dsp-codeql/issues/36
2020-08-04 14:35:20 -07:00
Robert
87758a1402
Upload much more data in status reports
2020-07-24 15:01:44 +01:00
Robert Brignull
0086c2ecdb
use @actions/github
2020-07-06 16:25:26 +01:00
Chris Gavin
464ce1b43a
Manually convert response.data to a JSON string.
2020-06-24 13:50:52 +01:00
Chris Gavin
74c48f71fa
Use a single Octokit client for everything rather than a bunch of Octokits and an HTTP client.
2020-06-23 21:40:42 +01:00
Robert Brignull
fcb696ec59
Merge branch 'master' into validate_sarif
2020-06-15 14:40:01 +01:00
Robert Brignull
c1add46efa
Merge branch 'master' into validate_sarif
2020-06-08 13:48:14 +01:00
Robert Brignull
6db8182349
Merge branch 'master' into always-report-exceptions-v2
2020-06-08 13:24:24 +01:00
Robert Brignull
96da037d49
report exceptions during upload
2020-05-28 10:40:26 +01:00
Robert Brignull
da1e237d1e
Allow pull requests, and report correct commit oid and ref
2020-05-28 09:26:52 +01:00
Robert Brignull
ae301902e1
output a better error message
2020-05-22 14:56:20 +01:00
Robert Brignull
ddee374101
validate sarif against schema before uploading
2020-05-22 14:19:16 +01:00
Robert Brignull
3a883af8a6
Merge branch 'master' into upload_twice
2020-05-18 14:29:49 +01:00
Robert Brignull
5ec6b7524f
Emit an error if upload happens twice
2020-05-15 17:40:17 +01:00
Robert Brignull
b366432cb3
log some stats about the upload
2020-05-15 17:25:34 +01:00
Robert Brignull
aa54af7018
enable source maps
2020-05-14 11:07:58 +01:00
Robert Brignull
f49335fc3b
upload ref in status report
2020-05-14 09:30:42 +01:00
David Verdeguer
1477a43cc8
Merge branch 'master' into integration-tests
2020-05-12 10:23:56 +02:00