2126 Commits

Author SHA1 Message Date
Robert Brignull 574b5dc4e9 Merge branch 'main' into language_parsing 2020-08-19 09:40:47 +01:00
Esben Sparre Andreasen fd94b16cf5 use template strings instead of concatenations 2020-08-18 08:32:04 +02:00
Esben Sparre Andreasen 288f49eee5 use ExtraOptions in codeql commands 2020-08-18 08:32:03 +02:00
Esben Sparre Andreasen c2b7b7f977 add getExtraOptions utility 2020-08-18 08:32:03 +02:00
Esben Sparre Andreasen 008b0062c6 add ExtraOptions type for codeql commands 2020-08-18 08:32:03 +02:00
Robert Brignull d6fbafb242 add tests 2020-08-17 13:34:55 +01:00
Robert Brignull 1943ed432b use enum 2020-08-17 13:34:34 +01:00
Robert Brignull 00eee2b7ee Merge branch 'main' into language_parsing 2020-08-17 13:21:02 +01:00
Robert Brignull 96ded2b500 Merge remote-tracking branch 'origin/main' into max_threads 2020-08-17 12:47:19 +01:00
Robert Brignull 5eb3736850 move maxThreads outside of loop 2020-08-17 12:46:55 +01:00
Robert Brignull d49b8673bb fix alerts 2020-08-17 12:42:23 +01:00
Chris Gavin 73c73baaa2 Merge branch 'main' into chrisgavin/default-bundle-version-json 2020-08-14 15:53:07 +01:00
Robert Brignull aaeb9751bb use all available threads for analysis 2020-08-14 14:24:08 +01:00
Robert Brignull 2828c43ac7 fix file location 2020-08-12 18:08:30 +01:00
Robert Brignull 4b56177c28 Re-throw errors 2020-08-12 18:06:34 +01:00
Robert Brignull 150e07f914 add test action 2020-08-12 17:55:40 +01:00
Robert Brignull 5b0aafadb1 address comments 2020-08-12 17:42:47 +01:00
Chris Gavin 9c5f7640e5 Merge branch 'main' into chrisgavin/default-bundle-version-json 2020-08-11 17:52:34 +01:00
Robert Brignull cf08f5a9cd remove unused arguments 2020-08-11 13:56:23 +01:00
Robert Brignull 6d7a135fea Add a CLI interface to the upload-sarif action 2020-08-11 12:43:06 +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 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 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 ac66bbe1fe Merge branch 'main' into always_log_error 2020-08-06 16:25:10 +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 128c2cf718 revert: 'Don't send field in status reports.' 2020-08-04 18:26:31 +01:00
Chris Gavin 02d3d62def Merge remote-tracking branch v1 into main. 2020-08-04 16:30:51 +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
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
Robert Brignull 368c14c502 avoid sending status reports on enterprise 2020-07-30 13:00:35 +01:00
Chris Gavin f5ccce0c86 Merge branch 'main' into search-for-bundle 2020-07-30 10:35:09 +01:00