Skip to content

Commit 83f0fe6

Browse files
authored
Merge pull request #1713 from github/update-v2.3.6-96f284028
Merge main into releases/v2
2 parents 0225834 + 5c8f4be commit 83f0fe6

33 files changed

+484
-199
lines changed

.github/workflows/debug-artifacts.yml

-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ jobs:
5656
debug-artifact-name: my-debug-artifacts
5757
debug-database-name: my-db
5858
- uses: ./../action/.github/actions/setup-swift
59-
if: matrix.version == 'nightly-latest'
6059
with:
6160
codeql-path: ${{ steps.init.outputs.codeql-path }}
6261
- name: Build code

.github/workflows/python-deps.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
7373
- name: Verify packages installed
7474
run: |
75-
$GITHUB_WORKSPACE/python-setup/tests/check_requests_2_26_0.sh ${PYTHON_VERSION}
75+
$GITHUB_WORKSPACE/python-setup/tests/check_requests.sh ${PYTHON_VERSION} 2.31.0
7676
7777
# This one shouldn't fail, but also won't install packages
7878
test-setup-python-scripts-non-standard-location:
@@ -170,5 +170,5 @@ jobs:
170170
171171
- name: Verify packages installed
172172
run: |
173-
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests_2_26_0.ps1"
174-
powershell -File $cmd $Env:PYTHON_VERSION
173+
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests.ps1"
174+
powershell -File $cmd $Env:PYTHON_VERSION 2.31.0

.github/workflows/update-supported-enterprise-server-versions.yml

+17-9
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,22 @@ jobs:
3535
npm run build
3636
env:
3737
ENTERPRISE_RELEASES_PATH: ${{ github.workspace }}/enterprise-releases/
38-
- name: Commit Changes
39-
uses: peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666 # v5.0.1
40-
with:
41-
commit-message: Update supported GitHub Enterprise Server versions.
42-
title: Update supported GitHub Enterprise Server versions.
43-
body: ""
44-
author: GitHub <[email protected]>
45-
branch: update-supported-enterprise-server-versions
46-
draft: true
38+
39+
- name: Update git config
40+
run: |
41+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
42+
git config --global user.name "github-actions[bot]"
43+
44+
- name: Commit changes and open PR
4745
env:
4846
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
run: |
48+
if [[ -z $(git status --porcelain) ]]; then
49+
echo "No changes to commit"
50+
else
51+
git checkout -b update-supported-enterprise-server-versions
52+
git add .
53+
git commit --message "Update supported GitHub Enterprise Server versions"
54+
git push origin update-supported-enterprise-server-versions
55+
gh pr create --fill --draft
56+
fi

.github/workflows/update-supported-enterprise-server-versions/update.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ def main():
3535

3636
if oldest_supported_release is None or release_version < oldest_supported_release:
3737
end_of_life_date = datetime.date.fromisoformat(release_data["end"])
38-
if end_of_life_date > datetime.date.today():
38+
# The GHES version is not actually end of life until the end of the day specified by
39+
# `end_of_life_date`. Wait an extra week to be safe.
40+
is_end_of_life = datetime.date.today() > end_of_life_date + datetime.timedelta(weeks=1)
41+
if not is_end_of_life:
3942
oldest_supported_release = release_version
4043

4144
api_compatibility_data = {

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CodeQL Action Changelog
22

3+
## 2.3.6 - 01 Jun 2023
4+
5+
No user facing changes.
6+
37
## 2.3.5 - 25 May 2023
48

59
- Allow invalid URIs to be used as values to `artifactLocation.uri` properties. This reverses a change from [#1668](https://github.com/github/codeql-action/pull/1668) that inadvertently led to stricter validation of some URI values. [#1705](https://github.com/github/codeql-action/pull/1705)
@@ -14,6 +18,7 @@
1418
- This change does not affect the majority of workflows, and we will not be changing tags for existing bundle releases.
1519
- Some workflows with custom logic that depends on the specific format of the CodeQL bundle tag may need to be updated. For example, if your workflow matches CodeQL bundle tag names against a `codeql-bundle-yyyymmdd` pattern, you should update it to also recognize `codeql-bundle-vx.y.z` tags.
1620
- Remove the requirement for `on.push` and `on.pull_request` to trigger on the same branches. [#1675](https://github.com/github/codeql-action/pull/1675)
21+
- Update default CodeQL bundle version to 2.13.3. [#1698](https://github.com/github/codeql-action/pull/1698)
1722

1823
## 2.3.3 - 04 May 2023
1924

lib/actions-util.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/actions-util.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/defaults.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"bundleVersion": "codeql-bundle-20230428",
3-
"cliVersion": "2.13.1",
4-
"priorBundleVersion": "codeql-bundle-20230414",
5-
"priorCliVersion": "2.13.0"
2+
"bundleVersion": "codeql-bundle-20230524",
3+
"cliVersion": "2.13.3",
4+
"priorBundleVersion": "codeql-bundle-20230428",
5+
"priorCliVersion": "2.13.1"
66
}

node_modules/.package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeql",
3-
"version": "2.3.5",
3+
"version": "2.3.6",
44
"private": true,
55
"description": "CodeQL action",
66
"scripts": {

python-setup/tests/check_requests.ps1

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#! /usr/bin/pwsh
2+
3+
$EXPECTED_PYTHON_VERSION=$args[0]
4+
$EXPECTED_REQUESTS_VERSION=$args[1]
5+
6+
$FOUND_PYTHON_VERSION="$Env:LGTM_PYTHON_SETUP_VERSION"
7+
$FOUND_PYTHONPATH="$Env:LGTM_INDEX_IMPORT_PATH"
8+
9+
write-host "FOUND_PYTHON_VERSION=$FOUND_PYTHON_VERSION FOUND_PYTHONPATH=$FOUND_PYTHONPATH "
10+
11+
if ($FOUND_PYTHON_VERSION -ne $EXPECTED_PYTHON_VERSION) {
12+
write-host "Script told us to use Python $FOUND_PYTHON_VERSION, but expected $EXPECTED_PYTHON_VERSION"
13+
exit 1
14+
} else {
15+
write-host "Script told us to use Python $FOUND_PYTHON_VERSION, which was expected"
16+
}
17+
18+
$env:PYTHONPATH=$FOUND_PYTHONPATH
19+
20+
$INSTALLED_REQUESTS_VERSION = (py -3 -c "import requests; print(requests.__version__)")
21+
22+
if ($INSTALLED_REQUESTS_VERSION -ne $EXPECTED_REQUESTS_VERSION) {
23+
write-host "Using $FOUND_PYTHONPATH as PYTHONPATH, we found version $INSTALLED_REQUESTS_VERSION of requests, but expected $EXPECTED_REQUESTS_VERSION"
24+
exit 1
25+
} else {
26+
write-host "Using $FOUND_PYTHONPATH as PYTHONPATH, we found version $INSTALLED_REQUESTS_VERSION of requests, which was expected"
27+
}

python-setup/tests/check_requests.sh

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
6+
7+
EXPECTED_PYTHON_VERSION=$1
8+
EXPECTED_REQUESTS_VERSION=$2
9+
10+
FOUND_PYTHON_VERSION="$LGTM_PYTHON_SETUP_VERSION"
11+
FOUND_PYTHONPATH="$LGTM_INDEX_IMPORT_PATH"
12+
13+
echo "FOUND_PYTHON_VERSION=${FOUND_PYTHON_VERSION} FOUND_PYTHONPATH=${FOUND_PYTHONPATH} "
14+
15+
if [[ $FOUND_PYTHON_VERSION != $EXPECTED_PYTHON_VERSION ]]; then
16+
echo "Script told us to use Python ${FOUND_PYTHON_VERSION}, but expected ${EXPECTED_PYTHON_VERSION}"
17+
exit 1
18+
else
19+
echo "Script told us to use Python ${FOUND_PYTHON_VERSION}, which was expected"
20+
fi
21+
22+
PYTHON_EXE="python${EXPECTED_PYTHON_VERSION}"
23+
24+
INSTALLED_REQUESTS_VERSION=$(PYTHONPATH="${FOUND_PYTHONPATH}" "${PYTHON_EXE}" -c 'import requests; print(requests.__version__)')
25+
26+
if [[ "$INSTALLED_REQUESTS_VERSION" != "$EXPECTED_REQUESTS_VERSION" ]]; then
27+
echo "Using ${FOUND_PYTHONPATH} as PYTHONPATH, we found version $INSTALLED_REQUESTS_VERSION of requests, but expected $EXPECTED_REQUESTS_VERSION"
28+
exit 1
29+
else
30+
echo "Using ${FOUND_PYTHONPATH} as PYTHONPATH, we found version $INSTALLED_REQUESTS_VERSION of requests, which was expected"
31+
fi

python-setup/tests/check_requests_2_26_0.ps1

-28
This file was deleted.

python-setup/tests/check_requests_2_26_0.sh

-32
This file was deleted.

0 commit comments

Comments
 (0)