Chuan-kai Lin
3fb562ddcc
build: refresh js files
2025-07-16 07:10:40 -07:00
github-actions[bot]
44e03577b2
Rebuild
2024-12-03 18:39:38 +00:00
Henry Mercer
33f2dc57a4
Enable zstd bundles on GHES and remove feature flag
2024-11-01 15:24:51 +00:00
Michael B. Gale
1922a489a8
Add dependencyCachingEnabled to Config
2024-10-29 12:06:46 +00:00
github-actions[bot]
9cf3243b0b
Rebuild
2024-06-25 09:21:42 +00:00
Henry Mercer
2f54d9fcfa
Enable no console rule
2024-06-13 19:47:29 +01:00
Fotis Koutoulakis (@NlightNFotis)
cbe408dfc9
Add option tools: linked for init action.
...
Also ensure that option latest remains compatible, and add tests for
the two options.
2024-05-13 14:51:06 +01:00
Henry Mercer
55c1fd5777
Introduce codeql.supportsFeature
...
This is a slightly simpler API
2024-01-30 21:53:24 +00:00
Henry Mercer
0166a8a567
Add build mode to configuration
2024-01-30 19:10:37 +00:00
Henry Mercer
d2e867f3be
Refactoring: Introduce common method to stub a config
...
This means that we don't need to update irrelevant test cases when we
add a new configuration property.
2024-01-30 19:00:04 +00:00
Henry Mercer
ec42edcaab
Refactoring: Create interface for config initialization
...
This eliminates argument order mistakes, and also lets us add new inputs
without having to update every test.
2024-01-30 18:59:59 +00:00
Angela P Wen
96531062ba
Stop setting CODEQL_RUNNER environment variable if CLI already sets it ( #2081 )
...
* Check `setsCodeqlRunnerEnvVar` is set in the CLI with `ToolsFeatures`
* Stop setting `CODEQL_RUNNER` env var when CLI does
* Add optional `features` parameter in test utils
* Test that `CODEQL_RUNNER` is not set if CLI sets it
2024-01-12 09:41:07 -08:00
Michael B. Gale
bcbb900532
Rename VersionOutput to VersionInfo
2023-10-04 15:54:34 +01:00
Michael B. Gale
49b94f1a2d
Remove unused properties from VersionOutput
2023-10-04 15:51:26 +01:00
Michael B. Gale
e827ad5b71
Move makeVersionOutput to testing-utils.js
2023-10-04 15:49:04 +01:00
Michael B. Gale
74b46628c3
Support features key in version JSON output
2023-10-04 11:28:28 +01:00
Henry Mercer
c1f49580cf
Fix dependency incompatibilities
2023-07-13 11:20:39 +01:00
Henry Mercer
50f2cc19ee
Remove now redundant variant property
...
Previously, this was useful for discriminating between different
`CodeQLDefaultVersion` instances. However now all instances return a
tag name.
2023-07-07 15:15:57 +01:00
Henry Mercer
bec18d1625
Remove fallback logic for mapping default CLI version to GitHub Release
...
The default version feature flags will now always point to a CLI version
with a semantically versioned bundle, so we can find the GitHub
Release directly from the CLI version.
2023-07-07 15:15:57 +01:00
Henry Mercer
2bf10dc4b9
Extract semantic CLI version from URL when requesting specific tools
2023-05-16 14:47:32 +01:00
Henry Mercer
ba93815e25
Merge branch 'main' into henrymercer/upgrade-typescript
2023-01-19 16:15:51 +00:00
Henry Mercer
10695e6a20
Fix linter errors
2023-01-18 21:00:05 +00:00
Henry Mercer
5f644f971e
Upgrade TypeScript to 9.2.0
2023-01-18 20:59:57 +00:00
Henry Mercer
cdb90196f2
Support determining Dotcom CLI version from feature flags
2023-01-11 18:40:47 +00:00
Henry Mercer
9f8ddbdfd7
Fix GHAE CodeQL setup test
2023-01-10 19:36:29 +00:00
Andrew Eisenberg
ad7ca9bf21
Add some new tests and fix some comments
2022-11-23 22:18:12 -08: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
Andrew Eisenberg
701cea34ba
More renaming
2022-10-11 10:39:40 -07:00
Andrew Eisenberg
1a17c59fb0
More renaming
...
Avoid usage of "Feature Flag" unless we are talking specifically about
the response from github features api. Otherwise, use terms like
"Toggleable features".
Note both "toggleable" and "togglable" appear to be valid spellings of
the word. I chose the first for no good reason.
2022-10-07 11:33:32 -07:00
Andrew Eisenberg
e5c3375225
Refactor handling of feature flags
...
This commit centralizes how feature flags are handled. All feature flags
must now add an entry in the `featureFlagConfig` dictionary. This
dictionary associates the flag with an environment variable name and
optionally a minimum version for CodeQL.
The new logic is:
- if the environment variable is set to false: disabled
- if the minimum version requirement specified and met: disabled
- if the environment variable is set to true: enable
- Otherwise check feature flag enablement from the server
2022-10-05 16:40:56 -07:00
Henry Mercer
c15604920a
Workaround PATH casing issues on Windows
2022-06-29 18:59:32 +01:00
Andrew Eisenberg
d068f5372a
Fix failing tests
2022-03-25 10:00:47 -07:00
Henry Mercer
254816c2d2
Stub feature flag API endpoint in tests
2021-12-16 13:39:18 +00:00
Henry Mercer
04671efa1d
Add support for feature flagging via the GitHub API
2021-12-15 13:16:33 +00:00
Henry Mercer
93c9da2c2e
Reference exported names via import *.
...
Rather than via properties on default exports — see
https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
2021-08-11 13:17:04 +01:00
Edoardo Pirovano
d9849b8ca1
Rebuild after TypeScript version bump
2021-07-27 17:59:59 +01:00
Robert
8c91ba83e2
Introduce our own toolcache implementation for use by the runnner
2021-04-22 15:31:15 +01:00
Chris Raynor
a184d50a26
Running lint-fix
2020-09-14 10:44:43 +01:00
Robert Brignull
f5d645fc73
Fix use of wrong URL
2020-08-26 16:20:36 +01:00
Robert Brignull
34b372292b
commit node_modules and generated files
2020-08-11 12:43:27 +01:00
Robert
0446cb0aff
address comments
2020-07-21 12:19:37 +01:00
Robert
29cf06569d
reset environment variables between tests
2020-07-21 11:39:55 +01:00
Robert Brignull
da3d6d25eb
move config parsing earlier + add to codeql search path
2020-07-13 14:49:01 +01:00
Robert Brignull
0086c2ecdb
use @actions/github
2020-07-06 16:25:26 +01:00
Robert Brignull
52e52435f7
handle Uint8Array
2020-06-23 17:17:11 +01:00
Robert Brignull
02776246bf
Only output on failing tests
2020-06-23 14:36:40 +01:00
Sam Partington
8622312249
Update JavaScript with newer comment
2020-06-22 17:20:29 +01:00
Sam Partington
c0c67ce80f
Reduce debug output in tests
2020-06-22 17:13:47 +01:00