Simon Engledew
6df1fc5e38
Do not fail if the workflow has been deleted
2020-11-24 10:51:31 +00:00
Simon Engledew
754f502a84
Workflow triggers are null if unspecified
2020-11-24 10:25:58 +00:00
Simon Engledew
c0bd7b0b2b
Handle relative workflow paths
2020-11-24 09:56:10 +00:00
Simon Engledew
33bb87523e
Write a warning if there is an error with the workflow
2020-11-24 09:51:00 +00:00
Simon Engledew
7eb9dfcc60
Add a function that can lint a CodeQL action workflow
2020-11-23 17:29:19 +00:00
Sam Partington
20567b5888
Introduce parameter object for API params that travel together
2020-11-23 14:39:01 +00:00
Eric Cornelissen
6aaf0483f0
Merge branch 'main' into fix-typos
2020-11-20 14:32:12 +01:00
Eric Cornelissen
6ed5c82bb9
Merge branch 'main' into fix-typos
2020-11-20 13:59:16 +01:00
Eric Cornelissen
82ba92f462
Update spelling for autobuild to auto-built
2020-11-20 13:58:20 +01:00
Chris Gavin
7091b81414
Merge branch 'main' into eslint-rule/no-shadow
2020-11-20 12:44:18 +00:00
Chris Gavin
a04d948b04
Merge branch 'main' into fix-minor-code-mistakes
2020-11-20 11:37:27 +00:00
Eric Cornelissen
4e8634c29c
Remove duplicate statement in tracer-config test
...
The tracer-config.test.js file contained a duplicate of the statement:
process.env["SEMMLE_DEPTRACE_SOCKET"] = "abc";
one line apart. This removes the second instance of this statement.
2020-11-20 11:14:08 +01:00
Eric Cornelissen
85ea24bd20
Fix typos in src
...
- Rename "toolrunnner" (three 'n') to "toolrunner"
- Rename "relativeFilepaht" to "relativeFilepath"
- Fix various typos in documentation & comments
- Fix typos in logs and test names
2020-11-20 11:00:55 +01:00
Simon Engledew
6a45994b42
Merge branch 'main' into simon-engledew/fast-fail
2020-11-20 09:21:26 +00:00
Eric Cornelissen
992a0cf8f2
Merge branch 'main' into eslint-rule/no-shadow
2020-11-19 23:41:11 +01:00
Eric Cornelissen
483c94b974
Fix no shadow issues in upload-lib.ts
...
Rename one instance of "path" to avoid shadowing.
2020-11-19 22:54:48 +01:00
Eric Cornelissen
74559947b1
Fix no shadow issues in fingerprints.ts
...
Rename various instances of "hash", shadowing the function with that
name.
2020-11-19 22:54:05 +01:00
Eric Cornelissen
ffe94681e4
Fix no shadow issues in fingerprints.test.ts
...
Rename shadowing "uri" argument to the more explicit "artifactURI".
2020-11-19 22:51:29 +01:00
Eric Cornelissen
2a2910e693
Fix no shadow issues in config-utils.ts
...
Rename throwaway variable "suite" to "found" when assigned from "find".
Rename local variable "path" to "newPath" as it is a modification of
the "originalPath" provided to `validateAndSanitisePath`.
Rename instances of "path" to more explicit varients "ignorePath" and
"includePath". Maybe "ignoredPath" and "includedPath" are better names?
2020-11-19 22:50:02 +01:00
Eric Cornelissen
06e99f1523
Fix no shadow issues in config-utils.test.ts
...
Rename "queries" variable in test cases to "testQueries" to avoid
shadowing it in a subsequent helper function call (4 times).
Rename "path" twice in a hlper function to "validPath" and "invalidPath"
to avoid shadowing "path". The new names are more explicit.
2020-11-19 22:47:32 +01:00
Eric Cornelissen
98ad63b240
Fix no shadow issues in codeql.ts
...
Two simple variable renames from "path" to "paths" since the types are
arrays of strings (not just one string).
One function definition inside a function moved outside that function
to avoid shadowing the "options" argument.
2020-11-19 22:45:15 +01:00
Eric Cornelissen
b54c2aab11
Fix no shadow issues in api-client.ts
...
Duplicate use of "_" placeholder argument name. This change may conflict
with #192 .
2020-11-19 22:42:13 +01:00
Robert
0b0bc35050
Merge branch 'main' into robertbrignull/go_build_trace
2020-11-19 17:20:54 +00:00
Simon Engledew
eb4226ede4
Scanning endpoint failures should not halt the scan
2020-11-19 15:49:46 +00:00
Simon Engledew
7fda765d49
Merge remote-tracking branch 'origin/main' into simon-engledew/fast-fail
2020-11-19 13:55:47 +00:00
Simon Engledew
17d4671d60
Fail processing on a 422 as well
...
Until there is a more robust versioning system it is probably safest to require endpoint compatiblity and not continue the action if there is a mismatch.
2020-11-19 13:14:45 +00:00
Simon Engledew
f3ff4c84ba
Implement review feedback
2020-11-19 12:39:57 +00:00
Chris Gavin
726cfc8441
Ensure unqualified program names are present on PATH before executing them.
2020-11-18 22:20:13 +00:00
Simon Engledew
68dedeaa57
Do not run CodeQL if code scanning is not enabled
...
Put more fine grained logic around which errors we ignore and process.
Re-instate status reporting in Enterprise.
Abort the code scanning process the status endpoint reports it is not configured.
2020-11-18 17:21:57 +00:00
Robert
0d960df08a
Merge branch 'main' into robertbrignull/tools_version
2020-11-18 11:25:46 +00:00
Chris Gavin
f94e06a382
Merge main into add-multi-cause-markdown-flag.
2020-11-18 08:26:39 +00:00
Robert
3f2a7abc7b
change voicing
2020-11-13 15:04:54 +00:00
Robert
4d8912d269
Don't use the word "trace" in log messages
2020-11-13 12:01:07 +00:00
Robert
af27146b64
Merge branch 'main' into robertbrignull/go_build_trace
2020-11-13 10:24:37 +00:00
Robert
1737b806ff
check if running locally
2020-11-12 14:18:58 +00:00
Robert
80b43ca9d3
send action ref and tool version in status reports
2020-11-12 12:27:31 +00:00
Robert
9a7b7cb035
Merge branch 'main' into azure_pipelines
2020-11-11 10:12:56 +00:00
Robert
aae4713a4d
detect Agent.Worker.exe
2020-11-10 16:16:58 +00:00
Chris Gavin
bf30ea69d6
Make use of the GITHUB_ACTION_REPOSITORY environment variable if it is set.
2020-11-10 13:30:20 +00:00
Robin Neatherway
ab40235d88
Update default CodeQL bundle version
2020-11-09 13:00:43 +00:00
Simon Engledew
54f3e52e8f
Move setOutput into try block in case it errors
2020-11-04 19:29:06 +00:00
Simon Engledew
854109fe92
Report the path of CodeQL as an output
2020-11-04 15:38:31 +00:00
Robert
82e3812a35
Merge branch 'main' into robertbrignull/go_build_trace
2020-11-04 11:07:46 +00:00
Simon Engledew
1c8d72e0c2
Remove unnecessary env manipulation
...
testing-utils.ts / setupTests() already stores and restores the env
2020-11-04 10:59:35 +00:00
Simon Engledew
5c0e2f93f1
Fix invalid API call when running locally
...
The method getAnalysisKey would call getWorkflowPath and raise an API Error.
This change follows the pattern in prepareLocalRunEnvironment to set a dummy value for the required environment variable, therefore shortcutting the API request.
2020-11-04 09:58:09 +00: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
Simon Engledew
d7bd6e39e3
Merge branch 'main' into disable-gpgsign-in-tests
2020-11-03 14:47:39 +00:00
Chris Gavin
b16110e60e
Log the version warning a second time if a request fails unexpectedly.
2020-11-03 12:57:15 +00:00
Simon Engledew
efc3797e30
Disable gpg key signing in tests
...
This avoids a popup appearing if your GPG key has a passphrase and ensures the tests still pass even if GPG is misconfigured.
2020-11-03 11:05:49 +00:00
Chris Gavin
5e2fa08dae
Merge main into check-api-version.
2020-11-02 09:02:05 +00:00