Andrew Eisenberg
47588796b4
Send the version and mode with the user agent
...
This commit changes the way the action determines if running in action
or runner mode. There is now an environment variable that is set at the
beginning of the process and elsewhere in the process, we can check to
see if the variable is set.
2021-05-31 09:03:29 -07:00
Edoardo Pirovano
79c79f1be5
Add configuration option to set CodeQL DB location
2021-05-18 00:13:36 +01:00
David Verdeguer
c93cbc943a
Forward category input to codeql cli
2021-05-03 19:41:53 +02:00
Chris Gavin
7b72f1c330
Merge main into allow-override-temp.
2021-02-15 11:45:08 +00:00
Chris Gavin
ed751ece83
Allow overriding path of temporary files.
2021-02-01 15:34:13 +00:00
Sam Partington
c2377b2e49
Remove parameters from uploadFromActions
...
Retrieve the relevant values in the method itself instead.
2021-01-28 15:37:09 +00:00
Chris Gavin
94b32884f9
Dump logs to stdout instead of stderr to avoid synchronization problems.
2021-01-26 09:47:31 +00:00
Chris Gavin
8705aaff32
Walk log filex manually rather than using the Actions globber.
2021-01-26 09:21:38 +00:00
Chris Gavin
219142571c
Upload debug logs automatically when ACTIONS_STEP_DEBUG is enabled.
2021-01-25 15:44:31 +00:00
Sam Partington
c7275a75ce
Don't re-retrieve GitHub version when already have it
...
54e0c67332 (r45693026)
54e0c67332 (r45693030)
2021-01-06 11:40:16 +00:00
Sam Partington
54e0c67332
Revert "Retrieve GitHubVersion when used rather than passing around"
...
This reverts commit 6de1b753c2 .
https://github.com/github/codeql-action/pull/323#discussion_r551960301
2021-01-06 11:06:01 +00:00
Sam Partington
1da4ce5a03
Ensure stats get sent when not uploading results
...
https://github.com/github/codeql-action/pull/323#discussion_r551948732
2021-01-06 10:52:16 +00:00
Sam Partington
6de1b753c2
Retrieve GitHubVersion when used rather than passing around
2020-12-22 11:49:42 +00:00
Sam Partington
82a8fa443e
Merge branch 'main' into split-upload-method
2020-12-22 11:23:49 +00:00
Sam Partington
ff28c8d403
Move uploading side-effect out of runAnalyze
...
https://github.com/github/codeql-action/pull/323#discussion_r530978010
2020-11-27 12:27:10 +00:00
Eric Cornelissen
e6ea8cbae0
Run npm run build
2020-11-25 22:46:30 +01:00
Sam Partington
3ee4739b13
Make anonymous objects into variables for readability
2020-11-24 11:23:53 +00:00
Sam Partington
20567b5888
Introduce parameter object for API params that travel together
2020-11-23 14:39:01 +00:00
Simon Engledew
eb4226ede4
Scanning endpoint failures should not halt the scan
2020-11-19 15:49:46 +00:00
David Verdeguer
d6287621f6
Fail the analyze action when some language fails to run the queries
2020-10-22 10:22:27 +02:00
Robin Neatherway
7795860c11
Do not always overwrite the GITHUB_REF for PRs
...
As we move towards analysing the merge commit for pull requests by
default, we should stop sending `/refs/pull/n/head` rather than
`refs/pull/n/merge` _unless_ the checked-out SHA has actually changed.
Here we assume that any change (compared to GITHUB_SHA) indicates that
`git checkout HEAD^2` has been run earlier. This may sometimes be
incorrect (e.g. `git checkout mybranch`), but in that case the ref
would be wrong either way.
2020-09-17 13:11:06 +01:00
Robert Brignull
c1cee53da5
Add getOptionalInput and getRequiredInput
2020-09-15 18:47:50 +01:00
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
80e2c4fe4a
improve error message when config is not found
2020-08-28 09:43:25 +01:00
Robert Brignull
a542021200
make --language optional to autobuild and detect dominant language
2020-08-27 14:08:54 +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
8efabe9ec9
Merge branch 'main' into tracer-config
2020-08-25 11:35:22 +01:00
Robert Brignull
9e342a9b83
rename the action entrypoint files
2020-08-24 15:15:26 +01:00