Skip to content

Commit 62b4f23

Browse files
committed
Merge remote-tracking branch 'origin/main' into henrymercer/start-go-tracing-in-init
2 parents 6699d47 + 21530f5 commit 62b4f23

11 files changed

Lines changed: 37 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
## [UNRELEASED]
44

5+
No user facing changes.
6+
7+
## 2.1.22 - 01 Sep 2022
8+
59
- Downloading CodeQL packs has been moved to the `init` step. Previously, CodeQL packs were downloaded during the `analyze` step. [#1218](https://github.com/github/codeql-action/pull/1218)
10+
- Update default CodeQL bundle version to 2.10.4. [#1224](https://github.com/github/codeql-action/pull/1224)
11+
- The newly released [Poetry 1.2](https://python-poetry.org/blog/announcing-poetry-1.2.0) is not yet supported. In the most common case where the CodeQL Action is automatically installing Python dependencies, it will continue to install and use Poetry 1.1 on its own. However, in certain cases such as with self-hosted runners, you may need to ensure Poetry 1.1 is installed yourself.
612

713
## 2.1.21 - 25 Aug 2022
814

lib/codeql.js

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/defaults.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"bundleVersion": "codeql-bundle-20220811"
2+
"bundleVersion": "codeql-bundle-20220825"
33
}

node_modules/.package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeql",
3-
"version": "2.1.22",
3+
"version": "2.1.23",
44
"private": true,
55
"description": "CodeQL action",
66
"scripts": {

python-setup/install_tools.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ py -3 -m pip install --user --upgrade pip setuptools wheel
88
py -2 -m pip install --user 'virtualenv<20.11'
99
py -3 -m pip install --user 'virtualenv<20.11'
1010

11-
# poetry 1.0.10 has error (https://github.com/python-poetry/poetry/issues/2711)
12-
py -3 -m pip install --user poetry!=1.0.10
11+
# We aren't compatible with poetry 1.2
12+
py -3 -m pip install --user "poetry>=1.1,<1.2"
1313
py -3 -m pip install --user pipenv

python-setup/install_tools.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ python3 -m pip install --user 'virtualenv<20.11'
2424
# "program uses threads.", RuntimeWarning)
2525
# LGTM_PYTHON_SETUP_VERSION=The currently activated Python version 2.7.18 is not supported by the project (^3.5). Trying to find and use a compatible version. Using python3 (3.8.2) 3
2626

27-
# poetry 1.0.10 has error (https://github.com/python-poetry/poetry/issues/2711)
28-
python3 -m pip install --user poetry!=1.0.10
27+
# We aren't compatible with poetry 1.2
28+
python3 -m pip install --user "poetry>=1.1,<1.2"
2929
python3 -m pip install --user pipenv
3030

3131
if command -v python2 >/dev/null 2>&1; then

src/codeql.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ const CODEQL_VERSION_CUSTOM_QUERY_HELP = "2.7.1";
251251
export const CODEQL_VERSION_ML_POWERED_QUERIES = "2.7.5";
252252
const CODEQL_VERSION_LUA_TRACER_CONFIG = "2.10.0";
253253
export const CODEQL_VERSION_CONFIG_FILES = "2.10.1";
254+
const CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED = "2.10.4";
254255

255256
/**
256257
* This variable controls using the new style of tracing from the CodeQL
@@ -799,18 +800,20 @@ async function getCodeQLForCmd(
799800
) {
800801
if (
801802
(await featureFlags.getValue(FeatureFlag.LuaTracerConfigEnabled)) &&
802-
// There's a bug in Lua tracing for Go on Windows in versions 2.10.3 and earlier,
803-
// so don't use Lua tracing when tracing Go on Windows.
804-
// Once we've released a fix, we should add a version gate based on the fixed version.
805-
!(
806-
config.languages.includes(Language.go) &&
807-
isTracedLanguage(
803+
// There's a bug in Lua tracing for Go on Windows in versions earlier than
804+
// `CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED`, so don't use Lua tracing
805+
// when tracing Go on Windows on these CodeQL versions.
806+
(!config.languages.includes(Language.go) ||
807+
!isTracedLanguage(
808808
Language.go,
809809
isGoExtractionReconciliationEnabled,
810810
logger
811-
) &&
812-
process.platform === "win32"
813-
)
811+
) ||
812+
process.platform !== "win32" ||
813+
(await util.codeQlVersionAbove(
814+
this,
815+
CODEQL_VERSION_LUA_TRACING_GO_WINDOWS_FIXED
816+
)))
814817
) {
815818
extraArgs.push("--internal-use-lua-tracing");
816819
} else {

0 commit comments

Comments
 (0)