Angela P Wen
30ddec69e0
Gate `database export-diagnostics` behind feature flag
2023-03-15 15:35:14 -07:00
Angela P Wen
c193f610a2
Merge remote-tracking branch 'upstream/main' into failed-database-diagnostic
2023-03-15 09:11:50 -07:00
Henry Mercer
65f42e3768
Inline minimum version number to avoid circular dependency
2023-03-14 21:04:34 +00:00
Angela P Wen
6cce51b809
Fix export-diagnostics call
2023-03-13 16:45:03 -07:00
Angela P Wen
ec89543aba
Remove --sarif-include-diagnostics from diagnotics export
2023-03-13 16:18:03 -07:00
Angela P Wen
1e4efb175e
Resolve merge conflicts
2023-03-13 15:54:38 -07:00
Angela P Wen
3200bf1551
Pass "--sarif-include-diagnostics" when feature flag on
2023-03-13 15:05:50 -07:00
Henry Mercer
485cc11a24
Rename `featureEnablement` to `features`
...
This is more succinct and removes a few line breaks
2023-03-09 16:46:51 +00:00
Henry Mercer
fc1366f6ec
Gate config export behind a feature flag
2023-03-09 16:44:45 +00:00
Henry Mercer
4b1f530308
Export configuration information for green runs
2023-03-07 21:22:43 +00:00
Henry Mercer
d98eadb536
Export configuration information for red runs
2023-03-07 21:21:47 +00:00
Henry Mercer
c310f094dd
Fix name of qlconfig file argument
2023-03-07 08:46:58 -08:00
Henry Mercer
4366485427
Avoid passing an undefined qlconfig arg
2023-03-07 08:46:57 -08:00
Angela P Wen
1d4190aa39
Add `database export-diagnostics` command
2023-03-03 11:48:23 -08:00
Angela P Wen
b780f5b820
Add autogenerated files
2023-03-02 17:56:33 -08:00
Andrew Eisenberg
98d24e5629
Address comments from PR
2023-02-27 09:59:16 -08:00
Andrew Eisenberg
8f19113f88
Merge branch 'main' into aeisenberg/qlconfig-in-cli
2023-02-26 18:35:21 -08:00
Chuan-kai Lin
8242edb8ed
databaseRunQueries(): add optimizeForLastQueryRun parameter
2023-02-15 08:45:13 -08:00
Chuan-kai Lin
3095a09bb0
databaseRunQueries(): accept a list of flags
...
This refactoring commit changes databaseRunQueries() to accept a list of
flags instead of separate memory and threads flags.
2023-02-14 11:53:52 -08:00
Andrew Eisenberg
3c81243bb1
Apply suggestions from code review
...
Co-authored-by: Henry Mercer <henry.mercer@me.com>
2023-02-09 12:25:33 -08:00
Andrew Eisenberg
e2f72f11e4
Merge remote-tracking branch 'upstream/main' into aeisenberg/qlconfig-in-cli
2023-02-09 09:47:43 -08:00
Henry Mercer
db534af2ae
Remove feature flags for bypassing the toolcache
...
- We can now use the default bundle version feature flags to remediate a
bad bundle update.
- Controlled switchover ensures that a repo consistently gets the same
bundle version, so we no longer have alert churn concerns with Kotlin
and Swift.
2023-02-08 15:20:51 +00:00
Andrew Eisenberg
bbe8d375fd
Ensure qlconfig file is created when config parsing in cli is on
...
Previously, with the config parsing in the cli feature flag turned on,
the CLI was not able to download packs from other registries. This PR
adds the codeql-action changes required for this. The CLI changes will
be in a separate, internal PR.
2023-02-07 10:40:56 -08:00
Angela P Wen
39c954c513
Support `security-experimental` as a well-known suite ( #1519 )
2023-02-06 19:26:03 +00:00
Angela P Wen
24ca6b0400
Send tools telemetry to `init` status report ( #1497 )
...
Co-authored-by: Henry Mercer <henry.mercer@me.com>
2023-01-25 11:09:18 -08:00
Henry Mercer
4beb39593b
Explain why we're using `--format=json` to get the extractor path
2023-01-20 15:01:38 +00:00
Henry Mercer
ba93815e25
Merge branch 'main' into henrymercer/upgrade-typescript
2023-01-19 16:15:51 +00:00
Henry Mercer
5f644f971e
Upgrade TypeScript to 9.2.0
2023-01-18 20:59:57 +00:00
Henry Mercer
5f1362dd53
Merge branch 'main' into henrymercer/controlled-switchover
2023-01-18 15:37:28 +00:00
Andrew Eisenberg
9b1206e898
Fix a bug in cli config parsing
...
When the config specifies queries in external repositories and no other
queries and cli config parsing is enabled, the analyze job is not able
to find any queries to run and it fails. This PR fixes the problem.
Also add some logging statements when writing a copy of the user config
file.
2023-01-17 20:59:36 -08:00
Henry Mercer
2f7b9a1280
Differentiate `setupCodeql.setupCodeQL` from `codeql.setupCodeQL`
2023-01-11 19:06:50 +00:00
Henry Mercer
c3be36f5cb
Use new default version to set up CodeQL
2023-01-11 19:06:50 +00:00
Henry Mercer
bd2f52fcef
Move CodeQL setup to its own file
2023-01-11 19:06:50 +00:00
Henry Mercer
a76fe4f9bd
Enable mapping from CLI version to bundle tag name
2023-01-11 19:06:50 +00:00
Andrew Eisenberg
272d916f23
Address comments from PR
2023-01-10 12:17:26 -08: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
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
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
2cbc140ac5
Enable file baseline export by default
...
This is now fully rolled out.
2022-12-05 14:10:06 +00:00
Henry Mercer
e0ff272230
Merge branch 'main' into henrymercer/report-failed-runs
2022-12-02 14:31:22 +00:00
Angela P Wen
aa0e650c6a
Surface fatal CLI errors in `interpret-results` and `run-queries` ( #1407 )
...
Co-authored-by: Henry Mercer <henry.mercer@me.com>
2022-12-02 14:05:21 +01:00
Henry Mercer
e2338066a1
Add `diagnostics export` command
2022-11-25 17:47:21 +00:00
Andrew Eisenberg
f79028af27
Add the feature to bypass the toolcache for kotlin and swift
...
This works by moving the logic to check for toolcache bypass out of
creating the codeql instance. The logic now _may_ perform an API request
in order to check what languages are in the repository. This check is
redundant because the same call is being made later in the action when
the actual list of languages is calculated.
2022-11-23 15:11:20 -08:00
Henry Mercer
bc341c5dd1
Remove fallback logic for GHES 2.22 when determining Action repository
2022-11-23 18:19:25 +00:00
Henry Mercer
d48707ce53
Merge branch 'henrymercer/delete-runner-part-2' into henrymercer/require-cli-2.6.3
2022-11-15 20:58:01 +00:00
Henry Mercer
0dea34e91c
Merge branch 'main' into henrymercer/delete-runner-part-2
2022-11-15 19:35:30 +00:00
Henry Mercer
1e2f8f035d
Merge branch 'main' into henrymercer/require-cli-2.6.3
2022-11-14 22:25:31 +00:00
Angela P Wen
5883c13406
Deprecate Go extraction reconciliation feature flag and `CODEQL_EXTRACTOR_GO_BUILD_TRACING` for custom builds ( #1322 )
...
Co-authored-by: Henry Mercer <henry.mercer@me.com>
2022-11-14 13:54:35 -08:00