Robert Brignull
121fd331cd
Introduce actions-util.ts
2020-09-15 14:01:21 +01:00
Chris Raynor
a184d50a26
Running lint-fix
2020-09-14 10:44:43 +01:00
Nick Fyson
77f767cb34
add optional workflow input to specify whether snippets are added to sarif output
2020-09-10 18:26:58 +01:00
Robert Brignull
4c00c68d14
Add --ram and --threads args
2020-09-01 14:27:56 +01:00
Robert Brignull
c3d6602e8a
use ToolRunner directly instead of exec wrapper
2020-08-28 16:59:34 +01:00
Robert Brignull
f5d645fc73
Fix use of wrong URL
2020-08-26 16:20:36 +01:00
Robert Brignull
217483dfd6
Convert rest of the actions
2020-08-26 16:20:36 +01:00
Robert Brignull
407ef0ac11
Break out tracer-config.ts
2020-08-24 12:53:09 +01:00
Robert Brignull
360e77a083
remove direct accesses to RUNNER_TEMP
2020-08-19 15:25:27 +01:00
Esben Sparre Andreasen
9597f2e889
build typescript
2020-08-18 08:32:33 +02:00
Robert Brignull
5eb3736850
move maxThreads outside of loop
2020-08-17 12:46:55 +01:00
Robert Brignull
aaeb9751bb
use all available threads for analysis
2020-08-14 14:24:08 +01:00
Robert Brignull
34b372292b
commit node_modules and generated files
2020-08-11 12:43:27 +01:00
Robert
a0660c80bd
remove should_abort method
2020-08-07 16:56:04 +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
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
368c14c502
avoid sending status reports on enterprise
2020-07-30 13:00:35 +01:00
Robert
87758a1402
Upload much more data in status reports
2020-07-24 15:01:44 +01:00
Robert Brignull
da3d6d25eb
move config parsing earlier + add to codeql search path
2020-07-13 14:49:01 +01:00
Robert Brignull
0086c2ecdb
use @actions/github
2020-07-06 16:25:26 +01:00
Robert Brignull
0e3f8311ed
add analysis_key to status reports
2020-06-29 11:24:04 +01:00
Robin Neatherway
bb9ed79f3d
getRequiredEnvParams must be non-empty
2020-06-26 11:44:17 +01:00
Chris Gavin
ef507971e7
Merge branch 'main' into octokit
2020-06-26 10:29:51 +01:00
Robert Brignull
0fdc2c71e4
fall back to GITHUB_SHA env var if git is not available
2020-06-25 15:53:24 +01:00
Robert Brignull
50a2815790
Include completed_at when action is aborted
2020-06-25 14:10:28 +01:00
Alex Kalyvitis
a67896b792
fix typo and throw error when languages are not detected
2020-06-24 14:31:06 +02:00
Alex Kalyvitis
a091618158
Merge branch 'main' into report-action-aborted
2020-06-24 14:04:46 +02: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
7581ac8b17
make the temporary directory in tests a symlink
2020-06-23 17:40:54 +01:00
Alex Kalyvitis
af252d2f0d
report action has aborted
2020-06-23 18:36:08 +02:00
Alex Kalyvitis
31996935e6
reformat code and allow negative values for threads
2020-06-22 21:39:09 +02:00
Alex Kalyvitis
dcba70915d
move functions to util.ts
2020-06-22 17:17:25 +02:00
Robert Brignull
5ea736059a
move all files to the RUNNER_TEMP directory
2020-06-04 12:15:34 +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
0e6df42024
add tests for config-utils
2020-05-14 16:47:42 +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
Robert
52cd1f2261
Merge branch 'master' into analysisName
2020-05-11 17:13:32 +01:00
Robert Brignull
3455736978
remove URL encoding
2020-05-11 16:24:39 +01:00
Robert Brignull
ab918b676b
use tmp dir for external queries test
2020-05-05 12:02:37 +01:00
Robert Brignull
546d5a8843
URL encode the key
2020-04-30 16:04:19 +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