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
Robert Brignull
1da651c219
Add retries to the upload
2020-05-01 10:51:26 +01:00
Joshua Hale
26e955cfa3
report status as failure if upload fails
2020-04-30 16:28:53 +01:00
Robert Brignull
43de3a9949
start uploading analysis_key parameter
2020-04-30 15:32:55 +01:00
Kevin Sawicki
2789712b42
Send tool names as parameter to upload endpoint
2020-04-28 11:29:10 -07:00
anaarmas
28ccc3db2d
Initial commit (from f5274cbdce4ae7c9e4b937dcdf95ac70ae436d5f)
2020-04-28 17:23:37 +02:00