You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Python2 and pipenv are not supported since pipenv v2021.11.5
37
37
- python_version: 2
38
38
python_deps_type: pipenv
39
+
# Python2 is not available on ubuntu-22.04 by default -- see https://github.com/github/codeql-action/pull/1257
40
+
- python_version: 2
41
+
os: ubuntu-22.04
39
42
40
43
41
44
env:
@@ -63,6 +66,7 @@ jobs:
63
66
64
67
case ${{ matrix.os }} in
65
68
ubuntu-latest*) basePath="/opt";;
69
+
ubuntu-22.04*) basePath="/opt";;
66
70
macos-latest*) basePath="/Users/runner";;
67
71
esac
68
72
echo ${basePath}
@@ -86,7 +90,7 @@ jobs:
86
90
strategy:
87
91
fail-fast: false
88
92
matrix:
89
-
os: [ubuntu-latest, macos-latest]
93
+
os: [ubuntu-latest, ubuntu-22.04, macos-latest]
90
94
91
95
steps:
92
96
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# CodeQL Action Changelog
2
2
3
+
## 2.1.25 - 21 Sep 2022
4
+
5
+
- We will soon be rolling out a feature of the CodeQL Action that stores some information used to make future runs faster in the GitHub Actions cache. Initially, this will only be enabled on JavaScript repositories, but we plan to add more languages to this soon. The new feature can be disabled by passing the `trap-caching: false` option to your workflow's `init` step, for example if you are already using the GitHub Actions cache for a different purpose and are near the storage limit for it.
6
+
- Add support for Python automatic dependency installation with Poetry 1.2 [#1258](https://github.com/github/codeql-action/pull/1258).
# On Ubuntu 22.04 'python2' is not available by default. We want to give a slightly better
176
+
# error message than a traceback + `No such file or directory: 'python2'`
177
+
ifshutil.which("python2") isNone:
178
+
sys.exit(
179
+
"Python package installation failed: we detected this code as Python 2, but the 'python2' executable was not available. "
180
+
"To enable automatic package installation, please install 'python2' before the 'github/codeql-action/init' step, "
181
+
"for example by running 'sudo apt install python2' (Ubuntu 22.04). "
182
+
"If your code is not Python 2, but actually Python 3, please file a bug report at https://github.com/github/codeql-action/issues/new"
183
+
)
156
184
157
185
ifos.path.exists('requirements.txt'):
158
186
print('Found requirements.txt, will install packages with pip', flush=True)
# we install an older version of `setuptools` to ensure that binaries are always put
16
+
# under `<venv-path>/bin`, which wouldn't always happen with the GitHub actions version
17
+
# of Ubuntu 22.04. See https://github.com/github/codeql-action/issues/1249. The the next
18
+
# release of `virtualenv` after v20.16.5 will include a fix for this, so we can remove
# 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
26
32
27
-
# We aren't compatible with poetry 1.2
28
-
python3 -m pip install --user "poetry>=1.1,<1.2"
33
+
python3 -m pip install --user "poetry>=1.1"
29
34
python3 -m pip install --user pipenv
30
35
31
36
ifcommand -v python2 >/dev/null 2>&1;then
@@ -40,7 +45,7 @@ if command -v python2 >/dev/null 2>&1; then
0 commit comments