Andrew Eisenberg
a2312a0bf3
Change from metric to rule
...
The SARIF that we are interpreting has moved away from using `metric`
to the more general term, `rule`. We need to adapt our baseline lines of
code counting to use `rule` as well.
2021-05-04 10:06:16 -07:00
Andrew Eisenberg
ee2346270d
Avoid analyzing excluded language files for line counting
...
This change passes in a list of file types to the line counting
analysis. These are the languages for the databases being analyzed.
Line count analysis is restricted to these files.
2021-04-28 16:07:55 -07:00
Andrew Eisenberg
998f472183
Add baseline metrics for lines of code
...
This commit uses a third party library to estimate the lines of code in
a database that is to be analyzed by codeql.
The estimate uses the same includes and excludes globs for determining
which files should be counted.
The lines of code count is returned by language and injected into the
SARIF as `baseline` property in the `${language}/summary/lines-of-code`
metric.
2021-04-26 14:09:38 -07:00
Robert
8c91ba83e2
Introduce our own toolcache implementation for use by the runnner
2021-04-22 15:31:15 +01:00
Edoardo Pirovano
578f9fc99e
Add external git repositories to search path for custom queries
2021-04-21 17:40:56 +01: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
Sam Partington
9532bda6e4
Use better comparison operator
2020-11-26 11:57:34 +00:00
Sam Partington
57514f31db
Split upload method into two mode-specific ones
2020-11-26 11:50:57 +00:00
Sam Partington
20567b5888
Introduce parameter object for API params that travel together
2020-11-23 14:39:01 +00:00
Eric Cornelissen
5416d4f3b5
Run npm run build
2020-11-20 11:35:59 +01:00
Andrew Eisenberg
bc1ee1620f
Add the --threads config option to finalize db ( #281 )
...
This flag is already being used for `runQueries`, so let's use it for
finalize as well.
2020-11-03 08:25:40 -08:00
David Verdeguer
d6287621f6
Fail the analyze action when some language fails to run the queries
2020-10-22 10:22:27 +02:00
David Verdeguer
55eb02cb0a
Merge branch 'main' into daverlo/python
2020-10-05 08:05:16 +02:00
David Verdeguer
34955967b7
Fix python string
2020-09-23 18:06:08 +02:00
David Verdeguer
23a1a65b43
Merge branch 'main' into daverlo/python-v2
2020-09-23 09:27:54 +02:00
Robert Brignull
1dc1029baf
Merge branch 'main' into split_builtin_custom_queries
2020-09-18 09:52:44 +01:00
Chris Raynor
a184d50a26
Running lint-fix
2020-09-14 10:44:43 +01:00
David Verdeguer
52274f1815
Setup python extractor for installed deps
2020-09-11 11:07:27 +02: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
0539269665
split up builtin and custom queries
2020-09-10 18:17:03 +01:00
Robert Brignull
4c00c68d14
Add --ram and --threads args
2020-09-01 14:27:56 +01:00
Robert Brignull
a542021200
make --language optional to autobuild and detect dominant language
2020-08-27 14:08:54 +01:00
Robert Brignull
217483dfd6
Convert rest of the actions
2020-08-26 16:20:36 +01:00