Robert Brignull
34b372292b
commit node_modules and generated files
2020-08-11 12:43:27 +01:00
Robert Brignull
6d7a135fea
Add a CLI interface to the upload-sarif action
2020-08-11 12:43:06 +01:00
Robert
bcf676e52d
Merge pull request #141 from github/actions_io
...
Remove direct dependency on @actions/io
bundle-test
bundle-test-20200812
codeql-bundle-20200812
2020-08-10 16:14:11 +01:00
Robert Brignull
591359cae6
introduce languages.ts
2020-08-10 16:03:09 +01:00
Robert
7c2a7b236c
Merge remote-tracking branch 'origin/main' into actions_io
2020-08-10 15:59:27 +01:00
Robert
0fdcc52338
Merge branch 'main' into actions_io
2020-08-10 15:50:44 +01:00
Robert
d5693a7fd2
Merge pull request #140 from github/remove_some_shared_env
...
Remove some shared env
2020-08-10 15:46:03 +01:00
Robert
eb4eda5cbe
Merge branch 'main' into remove_some_shared_env
2020-08-10 15:28:44 +01:00
Chris Gavin
97eafbc804
Store the default CodeQL bundle version in a JSON file.
2020-08-10 13:41:45 +01:00
Robert
9494a25e76
Merge pull request #143 from github/update-v1-86081052
...
Merge main into v1
2020-08-10 10:46:27 +01:00
Robert
6e18b27d4d
Merge pull request #137 from github/invalid_language
...
Provide a better error message when languages are not recognised
2020-08-10 10:36:01 +01:00
Robert
de0b59097a
remove direct dependency on @actions/io
2020-08-07 18:09:45 +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
a0660c80bd
remove should_abort method
2020-08-07 16:56:04 +01:00
Robert
396f7167d8
remove CODEQL_ACTION_TRACED_LANGUAGES and CODEQL_ACTION_SCANNED_LANGUAGES
2020-08-07 16:55:45 +01:00
Robert
e5ad069f2c
remove CODEQL_ACTION_ANALYSIS_KEY
2020-08-07 16:54:58 +01:00
Robert
5b35de62bd
remove CODEQL_ACTION_DATABASE_DIR
2020-08-07 16:08:16 +01:00
Robert Brignull
d5853409b4
Provide a better error message when language is not recognised
2020-08-06 17:34:45 +01:00
Robert
8608105240
Merge pull request #136 from github/always_log_error
...
Always log the full error
2020-08-06 17:33:13 +01:00
Robert
ac66bbe1fe
Merge branch 'main' into always_log_error
2020-08-06 16:25:10 +01:00
Robert
3a28cb4ca8
Merge pull request #131 from github/languages_error
...
Improve error messages when no languages or no queries are specified
2020-08-05 10:01:09 +01:00
Robert Brignull
8127c47bbd
always log full error
2020-08-05 09:43:46 +01:00
Robert Brignull
44c88fdd05
fix undefined check
2020-08-05 09:40:12 +01:00
Robert Brignull
6230b36dc2
update error message
2020-08-05 09:23:51 +01:00
Robert Brignull
3d552ba624
Merge branch 'main' into languages_error
2020-08-05 09:22:58 +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
Alex Ford
631929a68f
Merge pull request #135 from github/revert-dont-send-matrix-vars
...
revert: 'Don't send `matrix_vars` field in status reports.'
2020-08-04 18:43:59 +01:00
Alex Ford
128c2cf718
revert: 'Don't send field in status reports.'
2020-08-04 18:26:31 +01:00
Chris Gavin
69bf3f24d4
Merge pull request #134 from github/merge-v1
...
Merge v1 into main.
2020-08-04 16:33:57 +01:00
Chris Gavin
02d3d62def
Merge remote-tracking branch v1 into main.
2020-08-04 16:30:51 +01:00
Chris Gavin
f0894d52f3
Merge pull request #132 from github/dont-send-matrix-vars
...
Don't send `matrix_vars` field in status reports.
2020-08-04 16:28:08 +01:00
Chris Gavin
1fb3aaff6e
Don't send matrix_vars field in status reports.
2020-08-04 16:21:58 +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
Robert Brignull
4896ba51da
improve error message when no languages are detected
2020-08-04 10:29:50 +01:00
Robert
30d2cce9f8
Merge pull request #128 from github/enterprise_status_reports
...
Avoid sending status reports on enterprise
2020-08-03 15:18:02 +01:00
Robert
1ef33b0330
Merge pull request #130 from github/update-v1-e8896a90
...
Merge main into v1
2020-08-03 11:28:33 +01:00
Sam Partington
443d18adb7
Improve variable name
2020-07-31 11:15:09 +01:00
Sam Partington
d998a87469
Fix typo
2020-07-31 11:13:06 +01:00
Sam Partington
f57bf21879
Tidy up test
2020-07-31 11:11:47 +01:00
Sam Partington
ca2b74f2f8
Make test name more descriptive
2020-07-30 17:05:58 +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
Robert Brignull
368c14c502
avoid sending status reports on enterprise
2020-07-30 13:00:35 +01:00
Chris Gavin
e8896a906a
Merge pull request #123 from github/search-for-bundle
...
Search for the CodeQL bundle in multiple places.
2020-07-30 10:56:03 +01:00
Chris Gavin
f5ccce0c86
Merge branch 'main' into search-for-bundle
2020-07-30 10:35:09 +01:00
Sam Partington
f03827d513
Add new input to the init action configuration
2020-07-27 16:50:03 +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
74268130c6
Merge pull request #116 from github/status_reports_v2
...
Upload much more data in status reports
2020-07-27 15:58:17 +01:00
Robert
ae2d7afe3b
Merge branch 'main' into status_reports_v2
2020-07-27 14:58:04 +01:00