Henry Mercer
4a918790cd
Merge branch 'main' into henrymercer/fix-ghae-setup-test
2023-01-11 15:23:04 +00:00
Andrew Eisenberg
e009918fbc
Merge branch 'main' into aeisenberg/externalRepoTokenConfigParsing
2023-01-10 12:43:37 -08:00
Henry Mercer
70a288daae
Merge branch 'main' into henrymercer/fix-ghae-setup-test
2023-01-10 20:37:40 +00:00
Andrew Eisenberg
272d916f23
Address comments from PR
2023-01-10 12:17:26 -08:00
Henry Mercer
28a9b2d6d7
Add a note regarding the sinon workaround
2023-01-10 19:43:23 +00:00
Henry Mercer
9f8ddbdfd7
Fix GHAE CodeQL setup test
2023-01-10 19:36:29 +00:00
Henry Mercer
9203e314a3
Improve CodeQL setup test structure and naming
2023-01-10 19:35:21 +00:00
Dave Bartolomeo
bac4fe1a38
Merge branch 'main' into dbartol/bundle-20230105
2023-01-10 09:31:07 -05:00
Robert
166d98c19e
Merge pull request #1465 from github/robertbrignull/upload_database_stream
...
Use a stream when uploading database contents
2023-01-09 12:37:54 +00:00
Robert
a9337bc304
Close stream after use
2023-01-09 11:00:43 +00:00
Andrew Eisenberg
4023575d64
Send the external repository token to the CLI
...
This commit does a few related things:
1. Bumps the minimum version for cli config parsing to 2.10.6
2. Ensures that if cli config parsing is enabled, then remove repos
are _not_ downloaded by the action. It happens in the CLI.
3. Passes the `--external-repository-token-stdin` option to the CLI
and passes the appropriate token via stdin if cli config parsing is
enabled.
2023-01-06 14:46:28 -08:00
Henry Mercer
cf1437a514
Merge pull request #1462 from github/henrymercer/refactor-codeql-setup
...
Refactor CodeQL setup
2023-01-06 17:36:02 +00:00
Dave Bartolomeo
b9c859bfa1
Merge branch 'main' into dbartol/bundle-20230105
2023-01-06 11:56:06 -05:00
Angela P Wen
b4187d626b
Add CLI version field and prior release fields to defaults file ( #1463 )
...
* Add CLI version field to `defaults` file
* Add fields for prior CLI version
2023-01-06 08:24:28 -08:00
Dave Bartolomeo
4e5a06f009
Update to CoideQL bundle 20230105 (2.12.0)
2023-01-06 10:55:46 -05:00
Robert
e8f7169839
Move database bundling to inside the try-catch
2023-01-06 15:28:25 +00:00
Robert
6ce923c375
Use a stream when uploading database contents
2023-01-06 15:16:51 +00:00
Henry Mercer
b2b478264a
Improve logging around authorization headers
2023-01-06 12:28:54 +00:00
Henry Mercer
5eba74a3c9
Refactor CodeQL setup
2023-01-05 19:09:34 +00:00
Henry Mercer
4789c1331c
Add more tests for uploading failed SARIF
...
Test results directly via return value of `testFailedSarifUpload` vs
via checking log messages.
2022-12-22 18:48:59 +00:00
Henry Mercer
59ebabde5d
Remove redundant log messages
2022-12-22 18:47:52 +00:00
Henry Mercer
3224214d91
Improve method naming
2022-12-22 18:33:06 +00:00
Henry Mercer
e09fbf5b4a
Demote upload failed SARIF run info statements to debug
...
We now report errors via telemetry, and this feature will shortly be
enabled by default.
2022-12-21 11:41:36 +00:00
Henry Mercer
e9ff99b027
Improve error message when workflow file doesn't exist
2022-12-21 11:40:31 +00:00
Henry Mercer
8b9e982393
Add a better log message for reusable workflow calls
2022-12-21 11:40:31 +00:00
Henry Mercer
8d1e008ecb
Check for successful completion rather than SARIF upload
...
This doesn’t affect the overall behaviour, but means we can
short-circuit slightly more quickly when `analyze` is passed
`upload: false`.
2022-12-21 11:40:31 +00:00
Orhan Toy
d58039a1e3
Merge pull request #1435 from github/orhantoy/add-CODE_SCANNING_REF-tests
...
Add tests for CODE_SCANNING_REF
2022-12-13 23:10:53 +01:00
Orhan Toy
b7028afcb4
Make sure env is reset between tests
2022-12-13 12:18:40 +00:00
Henry Mercer
f629dada4c
Merge branch 'main' into henrymercer/use-codeql-2.11.6
2022-12-13 12:15:58 +00:00
Orhan Toy
ccee4c68ff
Add tests for CODE_SCANNING_REF
2022-12-13 11:51:16 +00:00
Henry Mercer
899bf9c076
Merge pull request #1432 from github/henrymercer/init-post-telemetry
...
Add telemetry for uploading failed runs
2022-12-12 18:45:41 +00:00
Henry Mercer
dd7c3ef80e
Remove debugging log statements
2022-12-12 17:59:20 +00:00
Henry Mercer
b7b875efff
Reuse existing fields in post-init status report
2022-12-12 17:54:33 +00:00
nickfyson
54d25f56dd
use .has for searchParams instead of checking for undefined
2022-12-12 16:03:07 +00:00
nickfyson
d827cf3d65
remove use of query-string package
2022-12-12 14:50:10 +00:00
Henry Mercer
5aced81848
Update bundle version to codeql-bundle-20221211
2022-12-12 13:10:58 +00:00
Henry Mercer
118e294bb9
Record the stack trace if applicable
2022-12-09 10:35:28 +00:00
Henry Mercer
dc9c1c1a51
Add regression test for upload: false
2022-12-09 10:35:28 +00:00
Henry Mercer
a409f43c7a
Handle non-string with inputs
2022-12-09 10:35:28 +00:00
Henry Mercer
e67ad6aaed
Add telemetry for uploading failed runs
2022-12-09 10:35:19 +00:00
Chuan-kai Lin
c51babb6c6
Merge branch 'main' into cklin/codeql-cli-2.11.5
2022-12-07 08:33:58 -08:00
Henry Mercer
79166d0788
Merge pull request #1420 from github/henrymercer/failed-runs-fix-action-not-found
...
Fix failed SARIF upload behavior when the workflow doesn't call the CodeQL Action
2022-12-07 08:48:11 +00:00
Henry Mercer
384a214d60
Allow testing workflow parsing functionality from PR checks
2022-12-06 18:37:25 +00:00
Henry Mercer
697ed97fa5
Factor out some code in post-init tests
2022-12-06 18:23:55 +00:00
Henry Mercer
2207a72006
Downgrade log severity when we can't upload a failed SARIF file
...
This isn't severe enough to appear on the Actions summary.
2022-12-06 18:18:07 +00:00
Henry Mercer
4623c8edb6
Make getInputOrThrow throw when it can't find any calls to the Action
...
This created unexpected behavior with a workflow calling
`codeql-action/analyze` locally.
Therefore, be more conservative with parsing inputs from workflows and
refuse to parse jobs that don't call the specified Action exactly once.
2022-12-06 18:13:47 +00:00
Henry Mercer
9085295c40
Add regression test
2022-12-06 17:59:14 +00:00
Henry Mercer
2cbc140ac5
Enable file baseline export by default
...
This is now fully rolled out.
2022-12-05 14:10:06 +00:00
Chuan-kai Lin
1e5919b22d
Bump default CodeQL version to 2.11.5
2022-12-02 07:38:17 -08:00
Henry Mercer
375dacad24
Only print the full error message in debug mode
2022-12-02 14:38:40 +00:00