Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge releases/v3 into releases/v2 #2278

Merged
merged 36 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c01f016
Update changelog and version after v3.25.3
github-actions[bot] Apr 25, 2024
5af22f0
Update checked-in dependencies
github-actions[bot] Apr 25, 2024
4ebadbc
Merge pull request #2263 from github/mergeback/v3.25.3-to-main-d39d31e6
angelapwen Apr 25, 2024
8b0dfa8
Add deprecation warning for merging SARIF files with non-unique categ…
koesie10 Apr 22, 2024
24acd77
Set correct changelog URL
koesie10 Apr 26, 2024
a5e49d1
Extract check for combine SARIF files deprecation warning
koesie10 Apr 26, 2024
7c29971
Add combine_sarif_files_deprecation_warning_enabled feature flag
koesie10 Apr 26, 2024
80394dc
Hide deprecation warning if feature flag is not set
koesie10 Apr 26, 2024
905f9b0
Only show deprecation warning on GHES 3.14+
koesie10 Apr 26, 2024
b3225af
Mention GHES 3.18 as removal version on GHES
koesie10 Apr 26, 2024
a17ed37
Bump the npm group with 2 updates
dependabot[bot] Apr 29, 2024
c2eaf8a
Update checked-in dependencies
github-actions[bot] Apr 29, 2024
8fcfedf
Merge pull request #2267 from github/dependabot/npm_and_yarn/npm-4c62…
angelapwen Apr 29, 2024
41857ba
Textually replace CodeQL version in `package.json` (#2269)
angelapwen May 1, 2024
40f70f9
Extract more information message
koesie10 May 2, 2024
757fcd3
Remove unnecessary optional chaining
koesie10 May 2, 2024
1de9b37
Clarify name of function
koesie10 May 2, 2024
725ed41
Add tests for shouldShowCombineSarifFilesDeprecationWarning
koesie10 May 2, 2024
3a471a0
Update comment
koesie10 May 2, 2024
5d274be
Update CodeQL deprecation message
koesie10 May 2, 2024
e62cc70
Update default bundle to codeql-bundle-v2.17.2
github-actions[bot] May 2, 2024
ee63da2
Add changelog note
github-actions[bot] May 2, 2024
93b8232
Merge pull request #2265 from github/koesie10/deprecate-merge
koesie10 May 3, 2024
b20bf59
Remove CLI SARIF merge feature flag
koesie10 May 3, 2024
84d6ead
Merge pull request #2271 from github/koesie10/remove-cli-sarif-merge-ff
koesie10 May 3, 2024
65297ef
Update link to deprecation changelog
marcogario May 6, 2024
4673d41
Build js files
marcogario May 6, 2024
1e21373
Merge pull request #2272 from github/marcogario-patch-1
marcogario May 6, 2024
4b812a5
Merge pull request #2270 from github/update-bundle/codeql-bundle-v2.17.2
henrymercer May 7, 2024
4fdf4ac
Update changelog for v3.25.4
github-actions[bot] May 8, 2024
ccf74c9
Merge pull request #2275 from github/update-v3.25.4-4b812a5df
henrymercer May 8, 2024
52e98c0
Revert "Update version and changelog for v2.25.3"
henrymercer May 8, 2024
8e81fd4
Revert "Update checked-in dependencies"
henrymercer May 8, 2024
02619f4
Merge remote-tracking branch 'origin/releases/v3' into backport-v2.25…
henrymercer May 8, 2024
685e64b
Update version and changelog for v2.25.4
henrymercer May 8, 2024
654d389
Update checked-in dependencies
github-actions[bot] May 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/update-release-branch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import datetime
import fileinput
import re
from github import Github
import json
Expand Down Expand Up @@ -171,6 +172,19 @@ def get_current_version():
with open('package.json', 'r') as f:
return json.load(f)['version']

# `npm version` doesn't always work because of merge conflicts, so we
# replace the version in package.json textually.
def replace_version_package_json(prev_version, new_version):
prev_line_is_codeql = False
for line in fileinput.input('package.json', inplace = True, encoding='utf-8'):
if prev_line_is_codeql and f'\"version\": \"{prev_version}\"' in line:
print(line.replace(prev_version, new_version), end='')
else:
prev_line_is_codeql = False
print(line, end='')
if '\"name\": \"codeql\",' in line:
prev_line_is_codeql = True

def get_today_string():
today = datetime.datetime.today()
return '{:%d %b %Y}'.format(today)
Expand Down Expand Up @@ -374,9 +388,9 @@ def main():
run_git('commit', '--no-edit')

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

# Migrate the changelog notes from vLatest version numbers to vOlder version numbers
print(f'Migrating changelog notes from v{source_branch_major_version} to v{target_branch_major_version}')
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th

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.

## 2.25.4 - 08 May 2024

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

## 2.25.3 - 25 Apr 2024

- Update default CodeQL bundle version to 2.17.1. [#2247](https://github.com/github/codeql-action/pull/2247)
Expand Down
8 changes: 4 additions & 4 deletions lib/defaults.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"bundleVersion": "codeql-bundle-v2.17.1",
"cliVersion": "2.17.1",
"priorBundleVersion": "codeql-bundle-v2.17.0",
"priorCliVersion": "2.17.0"
"bundleVersion": "codeql-bundle-v2.17.2",
"cliVersion": "2.17.2",
"priorBundleVersion": "codeql-bundle-v2.17.1",
"priorCliVersion": "2.17.1"
}
8 changes: 4 additions & 4 deletions lib/feature-flags.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/feature-flags.js.map

Large diffs are not rendered by default.

76 changes: 67 additions & 9 deletions lib/upload-lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/upload-lib.js.map

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions lib/upload-lib.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading