Henry Mercer
e5f165b8f5
Linting: Prefer optional chaining
2025-10-22 16:55:06 +01:00
Michael B. Gale
2c8f4891d1
Add FF for config validation
2025-10-17 15:11:13 +01:00
Michael B. Gale
0822fb12e7
Log validation errors
2025-10-17 15:09:04 +01:00
Michael B. Gale
66df0bc515
Add and use parseUserConfig
...
- Throws a `ConfigurationError` if parsing the YAML fails
- Add a couple of tests for it
2025-10-17 15:08:59 +01:00
Michael B. Gale
9bd9b03572
Remove now unused qualityQueriesInput from InitConfigInputs
2025-10-17 13:22:41 +01:00
Michael B. Gale
3c8d00aea0
Initialise analysis kinds before starting status report
2025-10-17 11:46:35 +01:00
Nick Rolfe
7892cb2362
Overlays: allow any build mode for Go
...
We have a check that a traced language can only run overlay analysis
with build-mode: none, but Go does not currently declare support for
BMN, even though it has a similar autobuild mode that will work for
overlay analysis.
This commit adds a hard-coded exception to that check, allowing any
build mode for Go. This is intended as a short-term solution until Go
declares BMN support. It should be safe, since we can choose not to
enable the feature flag for Go repos using traced builds.
2025-10-07 17:45:08 +01:00
Michael B. Gale
05310c6f55
Ignore repository property query config if CQ-only analysis
2025-09-22 16:32:28 +01:00
Michael B. Gale
889d482c54
Add logging to combineQueries
2025-09-22 16:32:26 +01:00
Michael B. Gale
ed216a06d2
Include queries from repo properties in AugmentationProperties
2025-09-20 14:09:07 +01:00
Michael B. Gale
3b00d03019
Load repository properties and store them in the Config
2025-09-20 14:09:07 +01:00
Michael B. Gale
ddc6d540f0
Move AugmentationProperties out of config-utils
2025-09-19 17:08:17 +01:00
Michael B. Gale
6222edff53
Move error messages from config-utils to their own file
2025-09-19 17:08:09 +01:00
Michael B. Gale
3305d21389
Move UserConfig to its own file
2025-09-19 17:08:00 +01:00
Henry Mercer
df1fe23118
Merge pull request #3083 from github/henrymercer/resolve-languages-default-queries
...
Resolve supported languages using CodeQL CLI
2025-09-12 10:12:15 +01:00
Chuan-kai Lin
5c30ae46c1
Stop saving config in initConfig()
2025-09-11 12:31:29 -07:00
Chuan-kai Lin
4e2e64a92a
init-action: save updated config
...
This commit updates the init action to save the config again at the end
of run(), so that config updates in run() are correctly propagated to
the analyze action.
2025-09-11 08:07:50 -07:00
Michael B. Gale
4f56152a48
Store and check action version in Config
2025-09-10 13:33:17 +01:00
Michael B. Gale
0a56aada02
Merge pull request #3064 from github/mbg/cq/allow-cq-only-analysis
...
Allow Code Quality only analysis
2025-09-08 16:13:19 +01:00
Michael B. Gale
e045f5eeb4
Fix hasActionsWorkflows throwing if workflows folder doesn't exist
2025-09-05 21:11:33 +01:00
Henry Mercer
d981505040
Add log for supported languages
2025-09-05 16:56:15 +01:00
Henry Mercer
f8fb310547
Resolve supported languages using CodeQL CLI
2025-09-05 16:17:32 +01:00
Michael B. Gale
918e792ec9
Throw an error if query customisations are enabled for a code-quality-only analysis
2025-09-05 12:44:30 +01:00
Michael B. Gale
5d822f13cd
Rename getDbAnalysisKind and getDbAnalysisConfig
2025-09-05 12:39:34 +01:00
Michael B. Gale
f4fca70590
Do not mutate originalUserInput
2025-09-04 11:56:48 +01:00
Michael B. Gale
3ee9287c7a
Update condition and comment for CQ-only config
2025-09-04 11:44:34 +01:00
Michael B. Gale
01fe6a1120
Override query configuration for Code Quality only analyses
2025-09-04 11:43:51 +01:00
Michael B. Gale
8ea50b8f82
Add and use helpers for determining analysis config the DB is initialised with
2025-09-04 11:39:22 +01:00
Michael B. Gale
85a4853504
Add utility function to check if code scanning is enabled
2025-09-04 11:38:07 +01:00
Michael B. Gale
f2e20f52e0
Rename getDefaultConfig and update doc comment
2025-09-04 10:01:17 +01:00
Michael B. Gale
8d623f4184
Populate computedConfig in getDefaultConfig
2025-09-04 09:57:29 +01:00
Michael B. Gale
0fb047d929
Set user-provided UserConfig in getDefaultConfig
2025-09-04 09:55:00 +01:00
Michael B. Gale
87c5b58925
Remove augmentationProperties from Config
2025-09-03 12:56:58 +01:00
Michael B. Gale
7f81363b78
Mark result of appendExtraQueryExclusions as Readonly to prevent further modification
2025-09-03 12:21:31 +01:00
Michael B. Gale
e9fb72dd82
Move extraQueryExclusions out of AugmentationProperties
2025-09-03 12:13:58 +01:00
Michael B. Gale
ac9b91e745
Move overlay db settings from AugmentationProperties to Config
2025-09-02 18:02:12 +01:00
Michael B. Gale
c4d2772a75
Add computedConfig property to Config type
2025-09-02 18:01:49 +01:00
Michael B. Gale
e116d9977e
Stop propagating quality-queries input
2025-09-02 17:31:57 +01:00
Michael B. Gale
f96201c4af
Use analysisKinds to decide if Code Quality is enabled
2025-08-27 18:23:02 +01:00
Michael B. Gale
06c39b6b6f
Add Code Quality to enabled analysis kinds if there is an input to quality-queries
...
For backwards compatibility. We should remove this once `quality-queries` is no longer in use.
2025-08-27 18:23:02 +01:00
Michael B. Gale
e0104a269f
Add analysis-kinds input and parse it
2025-08-27 18:23:01 +01:00
Michael B. Gale
d6621b9f4e
Refactor check whether CQ is enabled
...
This will make it easier to replace in the future
2025-08-21 15:20:19 +01:00
Henry Mercer
5794ffcb4a
Fix auto-detection of extractors that aren't languages
2025-08-07 21:09:22 +01:00
Michael B. Gale
f28436bcbf
Update log message in getRawLanguagesInRepo
2025-08-07 12:43:21 +01:00
Michael B. Gale
0d72a5b371
Check that stats isn't undefined before trying to call isDirectory
2025-08-07 11:25:01 +01:00
Michael B. Gale
43638b10a0
Support auto-detecting Actions workflows
2025-08-07 11:04:21 +01:00
Henry Mercer
377976a96e
Improve type of trapCaches now Language is non-exhaustive
2025-08-05 18:09:37 +01:00
Henry Mercer
ea05bf27b6
Use more explicit checks on .length for readability
2025-08-05 17:55:50 +01:00
Henry Mercer
83e92edc4b
Improve detection of Rust in languages input
2025-08-05 11:43:04 +01:00
Henry Mercer
c481481d7d
Merge branch 'main' into henrymercer/language-extensibility
2025-08-05 11:07:39 +01:00