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
Robert
52cd1f2261
Merge branch 'master' into analysisName
2020-05-11 17:13:32 +01:00
David Verdeguer
c979850d28
Add test mode
2020-05-08 16:06:35 +02:00
Joshua Hale
43e27012da
Merge branch 'master' into report-upload-failures
2020-05-01 15:52:35 +01:00
Chris Gavin
8ff10b4a6b
Merge branch 'master' into better-feedback-folder-uploads
2020-05-01 15:34:12 +01:00
Joshua Hale
d68eb11bae
Merge branch 'master' into report-upload-failures
2020-05-01 15:32:01 +01:00
Chris Gavin
4e9886ad2b
Stop the upload action early if no files will be uploaded.
2020-05-01 15:27:32 +01:00
Robert
129ce28897
Update upload-lib.ts
2020-05-01 15:03:29 +01:00
Robert Brignull
a23cb1d61a
include status code is error message
2020-05-01 11:45:21 +01:00
Robert Brignull
0c4fc16b49
only retry on 5xx status codes
2020-05-01 11:32:09 +01:00
Chris Gavin
b6a0306228
Fail the upload action if uploading a folder with no SARIF files in.
2020-05-01 11:26:47 +01:00
Robert Brignull
e52e34ba17
remove change to behaviour on 500 errors
2020-05-01 11:20:21 +01:00
Robert Brignull
cffc0f7b4e
fix typo
2020-05-01 11:19:39 +01:00
Chris Gavin
5d2700f9cb
Increase the log level of the message showing what SARIF files were uploaded.
2020-05-01 11:07:58 +01:00