Skip to content

Commit ccf74c9

Browse files
authored
Merge pull request #2275 from github/update-v3.25.4-4b812a5df
Merge main into releases/v3
2 parents d39d31e + 4fdf4ac commit ccf74c9

File tree

65 files changed

+718
-296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+718
-296
lines changed

.github/update-release-branch.py

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import argparse
22
import datetime
3+
import fileinput
34
import re
45
from github import Github
56
import json
@@ -171,6 +172,19 @@ def get_current_version():
171172
with open('package.json', 'r') as f:
172173
return json.load(f)['version']
173174

175+
# `npm version` doesn't always work because of merge conflicts, so we
176+
# replace the version in package.json textually.
177+
def replace_version_package_json(prev_version, new_version):
178+
prev_line_is_codeql = False
179+
for line in fileinput.input('package.json', inplace = True, encoding='utf-8'):
180+
if prev_line_is_codeql and f'\"version\": \"{prev_version}\"' in line:
181+
print(line.replace(prev_version, new_version), end='')
182+
else:
183+
prev_line_is_codeql = False
184+
print(line, end='')
185+
if '\"name\": \"codeql\",' in line:
186+
prev_line_is_codeql = True
187+
174188
def get_today_string():
175189
today = datetime.datetime.today()
176190
return '{:%d %b %Y}'.format(today)
@@ -374,9 +388,9 @@ def main():
374388
run_git('commit', '--no-edit')
375389

376390
# Migrate the package version number from a vLatest version number to a vOlder version number
377-
print(f'Setting version number to {version}')
378-
subprocess.check_output(['npm', 'version', version, '--no-git-tag-version'])
379-
run_git('add', 'package.json', 'package-lock.json')
391+
print(f'Setting version number to {version} in package.json')
392+
replace_version_package_json(get_current_version(), version) # We rely on the `Update dependencies` workflow to update package-lock.json
393+
run_git('add', 'package.json')
380394

381395
# Migrate the changelog notes from vLatest version numbers to vOlder version numbers
382396
print(f'Migrating changelog notes from v{source_branch_major_version} to v{target_branch_major_version}')

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
44

55
Note that the only difference between `v2` and `v3` of the CodeQL Action is the node version they support, with `v3` running on node 20 while we continue to release `v2` to support running on node 16. For example `3.22.11` was the first `v3` release and is functionally identical to `2.22.11`. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers.
66

7+
## 3.25.4 - 08 May 2024
8+
9+
- Update default CodeQL bundle version to 2.17.2. [#2270](https://github.com/github/codeql-action/pull/2270)
10+
711
## 3.25.3 - 25 Apr 2024
812

913
- Update default CodeQL bundle version to 2.17.1. [#2247](https://github.com/github/codeql-action/pull/2247)

lib/defaults.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"bundleVersion": "codeql-bundle-v2.17.1",
3-
"cliVersion": "2.17.1",
4-
"priorBundleVersion": "codeql-bundle-v2.17.0",
5-
"priorCliVersion": "2.17.0"
2+
"bundleVersion": "codeql-bundle-v2.17.2",
3+
"cliVersion": "2.17.2",
4+
"priorBundleVersion": "codeql-bundle-v2.17.1",
5+
"priorCliVersion": "2.17.1"
66
}

lib/feature-flags.js

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

lib/feature-flags.js.map

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

lib/upload-lib.js

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

lib/upload-lib.js.map

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

lib/upload-lib.test.js

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

0 commit comments

Comments
 (0)