diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index 6a8c35a236..a90a840d58 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -13,14 +13,8 @@ """ -# Value of the mode flag for a v1 release -V1_MODE = 'v1-release' - -# Value of the mode flag for a v2 release -V2_MODE = 'v2-release' - -SOURCE_BRANCH_FOR_MODE = { V1_MODE: 'releases/v2', V2_MODE: 'main' } -TARGET_BRANCH_FOR_MODE = { V1_MODE: 'releases/v1', V2_MODE: 'releases/v2' } +SOURCE_BRANCH = 'main' +TARGET_BRANCH = 'releases/v2' # Name of the remote ORIGIN = 'origin' @@ -32,7 +26,7 @@ def run_git(*args, allow_non_zero_exit_code=False): cmd = ['git', *args] p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if not allow_non_zero_exit_code and p.returncode != 0: - raise Exception('Call to ' + ' '.join(cmd) + ' exited with code ' + str(p.returncode) + ' stderr:' + p.stderr.decode('ascii')) + raise Exception(f'Call to {" ".join(cmd)} exited with code {p.returncode} stderr: {p.stderr.decode("ascii")}.') return p.stdout.decode('ascii') # Returns true if the given branch exists on the origin remote @@ -40,23 +34,21 @@ def branch_exists_on_remote(branch_name): return run_git('ls-remote', '--heads', ORIGIN, branch_name).strip() != '' # Opens a PR from the given branch to the target branch -def open_pr( - repo, all_commits, source_branch_short_sha, new_branch_name, source_branch, target_branch, - conductor, is_v2_release, labels, conflicted_files): +def open_pr(repo, all_commits, source_branch_short_sha, new_branch_name, conductor): # Sort the commits into the pull requests that introduced them, # and any commits that don't have a pull request pull_requests = [] commits_without_pull_requests = [] for commit in all_commits: - pr = get_pr_for_commit(repo, commit) + pr = get_pr_for_commit(commit) if pr is None: commits_without_pull_requests.append(commit) elif not any(p for p in pull_requests if p.number == pr.number): pull_requests.append(pr) - print('Found ' + str(len(pull_requests)) + ' pull requests') - print('Found ' + str(len(commits_without_pull_requests)) + ' commits not in a pull request') + print(f'Found {len(pull_requests)} pull requests.') + print(f'Found {len(commits_without_pull_requests)} commits not in a pull request.') # Sort PRs and commits by age pull_requests = sorted(pull_requests, key=lambda pr: pr.number) @@ -64,7 +56,7 @@ def open_pr( # Start constructing the body text body = [] - body.append('Merging ' + source_branch_short_sha + ' into ' + target_branch) + body.append(f'Merging {source_branch_short_sha} into {TARGET_BRANCH}.') body.append('') body.append(f'Conductor for this PR is @{conductor}.') @@ -87,50 +79,33 @@ def open_pr( body.append('') body.append('Please do the following:') - if len(conflicted_files) > 0: - body.append(' - [ ] Ensure `package.json` file contains the correct version.') - body.append(' - [ ] Add commits to this branch to resolve the merge conflicts ' + - 'in the following files:') - body.extend([f' - [ ] `{file}`' for file in conflicted_files]) - body.append(' - [ ] Ensure another maintainer has reviewed the additional commits you added to this ' + - 'branch to resolve the merge conflicts.') body.append(' - [ ] Ensure the CHANGELOG displays the correct version and date.') body.append(' - [ ] Ensure the CHANGELOG includes all relevant, user-facing changes since the last release.') - body.append(' - [ ] Check that there are not any unexpected commits being merged into the ' + target_branch + ' branch.') + body.append(f' - [ ] Check that there are not any unexpected commits being merged into the {TARGET_BRANCH} branch.') body.append(' - [ ] Ensure the docs team is aware of any documentation changes that need to be released.') - - if not is_v2_release: - body.append(' - [ ] Remove and re-add the "Update dependencies" label to the PR to trigger just this workflow.') - body.append(' - [ ] Wait for the "Update dependencies" workflow to push a commit updating the dependencies.') - body.append(' - [ ] Mark the PR as ready for review to trigger the full set of PR checks.') - body.append(' - [ ] Approve and merge this PR. Make sure `Create a merge commit` is selected rather than `Squash and merge` or `Rebase and merge`.') + body.append(' - [ ] Merge the mergeback PR that will automatically be created once this PR is merged.') - if is_v2_release: - body.append(' - [ ] Merge the mergeback PR that will automatically be created once this PR is merged.') - body.append(' - [ ] Merge the v1 release PR that will automatically be created once this PR is merged.') - - title = 'Merge ' + source_branch + ' into ' + target_branch + title = f'Merge {SOURCE_BRANCH} into {TARGET_BRANCH}' # Create the pull request # PR checks won't be triggered on PRs created by Actions. Therefore mark the PR as draft so that # a maintainer can take the PR out of draft, thereby triggering the PR checks. - pr = repo.create_pull(title=title, body='\n'.join(body), head=new_branch_name, base=target_branch, draft=True) - pr.add_to_labels(*labels) - print('Created PR #' + str(pr.number)) + pr = repo.create_pull(title=title, body='\n'.join(body), head=new_branch_name, base=TARGET_BRANCH, draft=True) + print(f'Created PR #{pr.number}') # Assign the conductor pr.add_to_assignees(conductor) - print('Assigned PR to ' + conductor) + print(f'Assigned PR to {conductor}') # Gets a list of the SHAs of all commits that have happened on the source branch # since the last release to the target branch. # This will not include any commits that exist on the target branch # that aren't on the source branch. -def get_commit_difference(repo, source_branch, target_branch): +def get_commit_difference(repo): # Passing split nothing means that the empty string splits to nothing: compare `''.split() == []` # to `''.split('\n') == ['']`. - commits = run_git('log', '--pretty=format:%H', ORIGIN + '/' + target_branch + '..' + ORIGIN + '/' + source_branch).strip().split() + commits = run_git('log', '--pretty=format:%H', f'{ORIGIN}/{TARGET_BRANCH}..{ORIGIN}/{SOURCE_BRANCH}').strip().split() # Convert to full-fledged commit objects commits = [repo.get_commit(c) for c in commits] @@ -146,13 +121,13 @@ def is_pr_merge_commit(commit): def get_truncated_commit_message(commit): message = commit.commit.message.split('\n')[0] if len(message) > 60: - return message[:57] + '...' + return f'{message[:57]}...' else: return message # Converts a commit into the PR that introduced it to the source branch. # Returns the PR object, or None if no PR could be found. -def get_pr_for_commit(repo, commit): +def get_pr_for_commit(commit): prs = commit.get_pulls() if prs.totalCount > 0: @@ -186,7 +161,7 @@ def update_changelog(version): else: content = EMPTY_CHANGELOG - newContent = content.replace('[UNRELEASED]', version + ' - ' + get_today_string(), 1) + newContent = content.replace('[UNRELEASED]', f'${version} - {get_today_string()}', 1) with open('CHANGELOG.md', 'w') as f: f.write(newContent) @@ -207,16 +182,6 @@ def main(): required=True, help='The nwo of the repository, for example github/codeql-action.' ) - parser.add_argument( - '--mode', - type=str, - required=True, - choices=[V2_MODE, V1_MODE], - help=f"Which release to perform. '{V2_MODE}' uses {SOURCE_BRANCH_FOR_MODE[V2_MODE]} as the source " + - f"branch and {TARGET_BRANCH_FOR_MODE[V2_MODE]} as the target branch. " + - f"'{V1_MODE}' uses {SOURCE_BRANCH_FOR_MODE[V1_MODE]} as the source branch and " + - f"{TARGET_BRANCH_FOR_MODE[V1_MODE]} as the target branch." - ) parser.add_argument( '--conductor', type=str, @@ -226,110 +191,46 @@ def main(): args = parser.parse_args() - source_branch = SOURCE_BRANCH_FOR_MODE[args.mode] - target_branch = TARGET_BRANCH_FOR_MODE[args.mode] - repo = Github(args.github_token).get_repo(args.repository_nwo) version = get_current_version() - if args.mode == V1_MODE: - # Change the version number to a v1 equivalent - version = get_current_version() - version = f'1{version[1:]}' - # Print what we intend to go - print('Considering difference between ' + source_branch + ' and ' + target_branch) - source_branch_short_sha = run_git('rev-parse', '--short', ORIGIN + '/' + source_branch).strip() - print('Current head of ' + source_branch + ' is ' + source_branch_short_sha) + print(f'Considering difference between {SOURCE_BRANCH} and {TARGET_BRANCH}...') + source_branch_short_sha = run_git('rev-parse', '--short', f'{ORIGIN}/{SOURCE_BRANCH}').strip() + print(f'Current head of {SOURCE_BRANCH} is {source_branch_short_sha}.') # See if there are any commits to merge in - commits = get_commit_difference(repo=repo, source_branch=source_branch, target_branch=target_branch) + commits = get_commit_difference(repo=repo) if len(commits) == 0: - print('No commits to merge from ' + source_branch + ' to ' + target_branch) + print(f'No commits to merge from {SOURCE_BRANCH} to {TARGET_BRANCH}.') return # The branch name is based off of the name of branch being merged into # and the SHA of the branch being merged from. Thus if the branch already # exists we can assume we don't need to recreate it. - new_branch_name = 'update-v' + version + '-' + source_branch_short_sha - print('Branch name is ' + new_branch_name) + new_branch_name = f'update-v{version}-{source_branch_short_sha}' + print(f'Branch name is {new_branch_name}.') # Check if the branch already exists. If so we can abort as this script # has already run on this combination of branches. if branch_exists_on_remote(new_branch_name): - print('Branch ' + new_branch_name + ' already exists. Nothing to do.') + print(f'Branch {new_branch_name} already exists. Nothing to do.') return # Create the new branch and push it to the remote - print('Creating branch ' + new_branch_name) - - # The process of creating the v1 release can run into merge conflicts. We commit the unresolved - # conflicts so a maintainer can easily resolve them (vs erroring and requiring maintainers to - # reconstruct the release manually) - conflicted_files = [] - - if args.mode == V1_MODE: - # If we're performing a backport, start from the target branch - print(f'Creating {new_branch_name} from the {ORIGIN}/{target_branch} branch') - run_git('checkout', '-b', new_branch_name, f'{ORIGIN}/{target_branch}') - - # Revert the commit that we made as part of the last release that updated the version number and - # changelog to refer to 1.x.x variants. This avoids merge conflicts in the changelog and - # package.json files when we merge in the v2 branch. - # This commit will not exist the first time we release the v1 branch from the v2 branch, so we - # use `git log --grep` to conditionally revert the commit. - print('Reverting the 1.x.x version number and changelog updates from the last release to avoid conflicts') - v1_update_commits = run_git('log', '--grep', '^Update version and changelog for v', '--format=%H').split() - - if len(v1_update_commits) > 0: - print(f' Reverting {v1_update_commits[0]}') - # Only revert the newest commit as older ones will already have been reverted in previous - # releases. - run_git('revert', v1_update_commits[0], '--no-edit') - - # Also revert the "Update checked-in dependencies" commit created by Actions. - update_dependencies_commit = run_git('log', '--grep', '^Update checked-in dependencies', '--format=%H').split()[0] - print(f' Reverting {update_dependencies_commit}') - run_git('revert', update_dependencies_commit, '--no-edit') - - else: - print(' Nothing to revert.') - - print(f'Merging {ORIGIN}/{source_branch} into the release prep branch') - # Commit any conflicts (see the comment for `conflicted_files`) - run_git('merge', f'{ORIGIN}/{source_branch}', allow_non_zero_exit_code=True) - conflicted_files = run_git('diff', '--name-only', '--diff-filter', 'U').splitlines() - if len(conflicted_files) > 0: - run_git('add', '.') - run_git('commit', '--no-edit') - - # Migrate the package version number from a v2 version number to a v1 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') - - # Migrate the changelog notes from v2 version numbers to v1 version numbers - print('Migrating changelog notes from v2 to v1') - subprocess.check_output(['sed', '-i', 's/^## 2\./## 1./g', 'CHANGELOG.md']) - - # Remove changelog notes from v2 that don't apply to v1 - subprocess.check_output(['sed', '-i', '/^- \[v2+ only\]/d', 'CHANGELOG.md']) - - # Amend the commit generated by `npm version` to update the CHANGELOG - run_git('add', 'CHANGELOG.md') - run_git('commit', '-m', f'Update version and changelog for v{version}') - else: - # If we're performing a standard release, there won't be any new commits on the target branch, - # as these will have already been merged back into the source branch. Therefore we can just - # start from the source branch. - run_git('checkout', '-b', new_branch_name, f'{ORIGIN}/{source_branch}') + print(f'Creating branch {new_branch_name}.') + + # If we're performing a standard release, there won't be any new commits on the target branch, + # as these will have already been merged back into the source branch. Therefore we can just + # start from the source branch. + run_git('checkout', '-b', new_branch_name, f'{ORIGIN}/{SOURCE_BRANCH}') - print('Updating changelog') - update_changelog(version) + print('Updating changelog') + update_changelog(version) - # Create a commit that updates the CHANGELOG - run_git('add', 'CHANGELOG.md') - run_git('commit', '-m', f'Update changelog for v{version}') + # Create a commit that updates the CHANGELOG + run_git('add', 'CHANGELOG.md') + run_git('commit', '-m', f'Update changelog for v{version}') run_git('push', ORIGIN, new_branch_name) @@ -339,12 +240,7 @@ def main(): commits, source_branch_short_sha, new_branch_name, - source_branch=source_branch, - target_branch=target_branch, conductor=args.conductor, - is_v2_release=args.mode == V2_MODE, - labels=['Update dependencies'] if args.mode == V1_MODE else [], - conflicted_files=conflicted_files ) if __name__ == '__main__': diff --git a/.github/workflows/__analyze-ref-input.yml b/.github/workflows/__analyze-ref-input.yml index 0fc55f2970..357fda7d0a 100644 --- a/.github/workflows/__analyze-ref-input.yml +++ b/.github/workflows/__analyze-ref-input.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__autobuild-action.yml b/.github/workflows/__autobuild-action.yml index eeed7f3dca..5e3a1a8625 100644 --- a/.github/workflows/__autobuild-action.yml +++ b/.github/workflows/__autobuild-action.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__export-file-baseline-information.yml b/.github/workflows/__export-file-baseline-information.yml index 01b0c3e224..e3bde8456e 100644 --- a/.github/workflows/__export-file-baseline-information.yml +++ b/.github/workflows/__export-file-baseline-information.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__extractor-ram-threads.yml b/.github/workflows/__extractor-ram-threads.yml index 2fa4dd308d..b700b7644c 100644 --- a/.github/workflows/__extractor-ram-threads.yml +++ b/.github/workflows/__extractor-ram-threads.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__go-custom-queries.yml b/.github/workflows/__go-custom-queries.yml index d785779eb0..a3f7209211 100644 --- a/.github/workflows/__go-custom-queries.yml +++ b/.github/workflows/__go-custom-queries.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__go-tracing-autobuilder.yml b/.github/workflows/__go-tracing-autobuilder.yml index b85cd6fadd..6ddb46b90a 100644 --- a/.github/workflows/__go-tracing-autobuilder.yml +++ b/.github/workflows/__go-tracing-autobuilder.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__go-tracing-custom-build-steps.yml b/.github/workflows/__go-tracing-custom-build-steps.yml index f89d77ca75..8f416388c7 100644 --- a/.github/workflows/__go-tracing-custom-build-steps.yml +++ b/.github/workflows/__go-tracing-custom-build-steps.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__go-tracing-legacy-workflow.yml b/.github/workflows/__go-tracing-legacy-workflow.yml index 2cc72c05ba..21ba978309 100644 --- a/.github/workflows/__go-tracing-legacy-workflow.yml +++ b/.github/workflows/__go-tracing-legacy-workflow.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__init-with-registries.yml b/.github/workflows/__init-with-registries.yml index cd0a1da52f..118440242c 100644 --- a/.github/workflows/__init-with-registries.yml +++ b/.github/workflows/__init-with-registries.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__javascript-source-root.yml b/.github/workflows/__javascript-source-root.yml index 9b54794c3b..369de3aa1c 100644 --- a/.github/workflows/__javascript-source-root.yml +++ b/.github/workflows/__javascript-source-root.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__ml-powered-queries.yml b/.github/workflows/__ml-powered-queries.yml index 848de5f94a..71335d7284 100644 --- a/.github/workflows/__ml-powered-queries.yml +++ b/.github/workflows/__ml-powered-queries.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__multi-language-autodetect.yml b/.github/workflows/__multi-language-autodetect.yml index 9b3cff5d50..44552b1c25 100644 --- a/.github/workflows/__multi-language-autodetect.yml +++ b/.github/workflows/__multi-language-autodetect.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__packaging-codescanning-config-inputs-js.yml b/.github/workflows/__packaging-codescanning-config-inputs-js.yml index 744ced18c3..aab56afa65 100644 --- a/.github/workflows/__packaging-codescanning-config-inputs-js.yml +++ b/.github/workflows/__packaging-codescanning-config-inputs-js.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__packaging-config-inputs-js.yml b/.github/workflows/__packaging-config-inputs-js.yml index dc4221656a..0963924765 100644 --- a/.github/workflows/__packaging-config-inputs-js.yml +++ b/.github/workflows/__packaging-config-inputs-js.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__packaging-config-js.yml b/.github/workflows/__packaging-config-js.yml index 47b1ecc738..ebb0b0f1eb 100644 --- a/.github/workflows/__packaging-config-js.yml +++ b/.github/workflows/__packaging-config-js.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__packaging-inputs-js.yml b/.github/workflows/__packaging-inputs-js.yml index a9bbac0759..13887ba5d7 100644 --- a/.github/workflows/__packaging-inputs-js.yml +++ b/.github/workflows/__packaging-inputs-js.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__remote-config.yml b/.github/workflows/__remote-config.yml index a6c5a4ec51..a9ed0eb2dd 100644 --- a/.github/workflows/__remote-config.yml +++ b/.github/workflows/__remote-config.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__rubocop-multi-language.yml b/.github/workflows/__rubocop-multi-language.yml index b06628b49d..a706b73751 100644 --- a/.github/workflows/__rubocop-multi-language.yml +++ b/.github/workflows/__rubocop-multi-language.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__ruby.yml b/.github/workflows/__ruby.yml index b74e93ff44..2df8f1f456 100644 --- a/.github/workflows/__ruby.yml +++ b/.github/workflows/__ruby.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__split-workflow.yml b/.github/workflows/__split-workflow.yml index 01e2a98381..036c912914 100644 --- a/.github/workflows/__split-workflow.yml +++ b/.github/workflows/__split-workflow.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__submit-sarif-failure.yml b/.github/workflows/__submit-sarif-failure.yml index 67d79c5c95..3d16460aa0 100644 --- a/.github/workflows/__submit-sarif-failure.yml +++ b/.github/workflows/__submit-sarif-failure.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__swift-autobuild.yml b/.github/workflows/__swift-autobuild.yml index 63c19736ad..f47aae05b6 100644 --- a/.github/workflows/__swift-autobuild.yml +++ b/.github/workflows/__swift-autobuild.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__swift-custom-build.yml b/.github/workflows/__swift-custom-build.yml index df78cd86be..dbade7b300 100644 --- a/.github/workflows/__swift-custom-build.yml +++ b/.github/workflows/__swift-custom-build.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__test-autobuild-working-dir.yml b/.github/workflows/__test-autobuild-working-dir.yml index a3721e6132..c6d13ab7b4 100644 --- a/.github/workflows/__test-autobuild-working-dir.yml +++ b/.github/workflows/__test-autobuild-working-dir.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__test-local-codeql.yml b/.github/workflows/__test-local-codeql.yml index fe83965094..6d9312ee2c 100644 --- a/.github/workflows/__test-local-codeql.yml +++ b/.github/workflows/__test-local-codeql.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__test-proxy.yml b/.github/workflows/__test-proxy.yml index 95327eddf7..82fcf7460c 100644 --- a/.github/workflows/__test-proxy.yml +++ b/.github/workflows/__test-proxy.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__unset-environment.yml b/.github/workflows/__unset-environment.yml index a499842291..dcba338e44 100644 --- a/.github/workflows/__unset-environment.yml +++ b/.github/workflows/__unset-environment.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__upload-ref-sha-input.yml b/.github/workflows/__upload-ref-sha-input.yml index 47a1865f8f..7c7a24f240 100644 --- a/.github/workflows/__upload-ref-sha-input.yml +++ b/.github/workflows/__upload-ref-sha-input.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/__with-checkout-path.yml b/.github/workflows/__with-checkout-path.yml index 4ea0a1bdbc..84c822374f 100644 --- a/.github/workflows/__with-checkout-path.yml +++ b/.github/workflows/__with-checkout-path.yml @@ -12,7 +12,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a9c45b5445..ee7f36528c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,9 +2,9 @@ name: "CodeQL action" on: push: - branches: [main, releases/v1, releases/v2] + branches: [main, releases/v2] pull_request: - branches: [main, releases/v1, releases/v2] + branches: [main, releases/v2] # Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened # by other workflows. types: [opened, synchronize, reopened, ready_for_review] diff --git a/.github/workflows/codescanning-config-cli.yml b/.github/workflows/codescanning-config-cli.yml index 4cf405f022..272dc3a672 100644 --- a/.github/workflows/codescanning-config-cli.yml +++ b/.github/workflows/codescanning-config-cli.yml @@ -9,7 +9,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/debug-artifacts-failure.yml b/.github/workflows/debug-artifacts-failure.yml index 8fc0102e61..0d60ca76ce 100644 --- a/.github/workflows/debug-artifacts-failure.yml +++ b/.github/workflows/debug-artifacts-failure.yml @@ -10,7 +10,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/debug-artifacts.yml b/.github/workflows/debug-artifacts.yml index 836d7cad44..dd2aa90ff9 100644 --- a/.github/workflows/debug-artifacts.yml +++ b/.github/workflows/debug-artifacts.yml @@ -9,7 +9,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/expected-queries-runs.yml b/.github/workflows/expected-queries-runs.yml index d74e90acbf..7b4b88fe83 100644 --- a/.github/workflows/expected-queries-runs.yml +++ b/.github/workflows/expected-queries-runs.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/post-release-mergeback.yml b/.github/workflows/post-release-mergeback.yml index a2c3204244..453b02c0bd 100644 --- a/.github/workflows/post-release-mergeback.yml +++ b/.github/workflows/post-release-mergeback.yml @@ -1,8 +1,9 @@ -# This workflow runs after a release of the action. For v2 releases, it merges any changes from the -# release back into the main branch. Typically, this is just a single commit that updates the -# changelog. For v2 and v1 releases, it then (a) tags the merge commit on the release branch that -# represents the new release with an `vx.y.z` tag and (b) updates the `vx` tag to refer to this -# commit. +# This workflow runs after a release of the action. It: +# 1. Merges any changes from the release back into the main branch. Typically, this is just a single +# commit that updates the changelog. +# 2. Tags the merge commit on the release branch that represents the new release with an `v2.x.y` +# tag +# 3. Updates the `v2` tag to refer to this merge commit. name: Tag release and merge back on: @@ -15,7 +16,6 @@ on: push: branches: - - releases/v1 - releases/v2 jobs: @@ -105,7 +105,7 @@ jobs: git push origin --atomic --force refs/tags/"${VERSION}" refs/tags/"${major_version_tag}" - name: Create mergeback branch - if: steps.check.outputs.exists != 'true' && contains(github.ref, 'releases/v2') + if: steps.check.outputs.exists != 'true' env: VERSION: "${{ steps.getVersion.outputs.version }}" NEW_BRANCH: "${{ steps.getVersion.outputs.newBranch }}" diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 8b36f4ed52..d59939c9bf 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -2,7 +2,7 @@ name: PR Checks on: push: - branches: [main, releases/v1, releases/v2] + branches: [main, releases/v2] pull_request: # Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened # by other workflows. @@ -70,23 +70,6 @@ jobs: - name: Checkout uses: actions/checkout@v3 - # Checks for any conflict markers created by git. This check is primarily intended to validate that - # any merge conflicts in the v2 -> v1 backport PR are fixed before the PR is merged. - - name: Check for merge conflicts - run: | - # Use `|| true` since grep returns exit code 1 if there are no matches, and we don't want - # this to fail the workflow. - FILES_WITH_CONFLICTS=$(grep --extended-regexp --ignore-case --line-number --recursive \ - '^(<<<<<<<|>>>>>>>)' . || true) - if [[ "${FILES_WITH_CONFLICTS}" ]]; then - echo "Fail: Found merge conflict markers in the following files:" - echo "" - echo "${FILES_WITH_CONFLICTS}" - exit 1 - else - echo "Success: Found no merge conflict markers." - fi - - name: Set up Python uses: actions/setup-python@v4 with: diff --git a/.github/workflows/python-deps.yml b/.github/workflows/python-deps.yml index e8e0a8d317..a941fa8310 100644 --- a/.github/workflows/python-deps.yml +++ b/.github/workflows/python-deps.yml @@ -2,7 +2,7 @@ name: Test Python Package Installation on Linux and Mac on: push: - branches: [main, releases/v1, releases/v2] + branches: [main, releases/v2] pull_request: # Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened # by other workflows. diff --git a/.github/workflows/query-filters.yml b/.github/workflows/query-filters.yml index 864a4fdbeb..c384a231dd 100644 --- a/.github/workflows/query-filters.yml +++ b/.github/workflows/query-filters.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - releases/v1 - releases/v2 pull_request: types: diff --git a/.github/workflows/script/update-required-checks.sh b/.github/workflows/script/update-required-checks.sh index dfb1fc0f5a..f9f6a1195d 100755 --- a/.github/workflows/script/update-required-checks.sh +++ b/.github/workflows/script/update-required-checks.sh @@ -29,7 +29,7 @@ echo "$CHECKS" | jq echo "{\"contexts\": ${CHECKS}}" > checks.json -for BRANCH in main releases/v2 releases/v1; do +for BRANCH in main releases/v2; do echo "Updating $BRANCH" gh api --silent -X "PATCH" "repos/github/codeql-action/branches/$BRANCH/protection/required_status_checks" --input checks.json done diff --git a/.github/workflows/update-release-branch.yml b/.github/workflows/update-release-branch.yml index 0907cb3cfa..7c4f1c6e41 100644 --- a/.github/workflows/update-release-branch.yml +++ b/.github/workflows/update-release-branch.yml @@ -4,11 +4,6 @@ on: # This will open a PR to update the v2 release branch. workflow_dispatch: - # When the v2 release is complete, this workflow will open a PR to update the v1 release branch. - push: - branches: - - releases/v2 - jobs: update: timeout-minutes: 45 @@ -43,20 +38,9 @@ jobs: git config --global user.email "github-actions@github.com" git config --global user.name "github-actions[bot]" - - name: Update v2 release branch - if: github.event_name == 'workflow_dispatch' - run: | - python .github/update-release-branch.py \ - --github-token ${{ secrets.GITHUB_TOKEN }} \ - --repository-nwo ${{ github.repository }} \ - --mode v2-release \ - --conductor ${GITHUB_ACTOR} - - - name: Update v1 release branch - if: github.event_name == 'push' + - name: Update release branch run: | python .github/update-release-branch.py \ --github-token ${{ secrets.GITHUB_TOKEN }} \ --repository-nwo ${{ github.repository }} \ - --mode v1-release \ --conductor ${GITHUB_ACTOR} diff --git a/CHANGELOG.md b/CHANGELOG.md index f2ccd31773..1b9c84e29d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,11 @@ - These changes will not affect the majority of code scanning workflows. Continue reading only if your workflow uses [@actions/tool-cache](https://github.com/actions/toolkit/tree/main/packages/tool-cache) or relies on the precise location of CodeQL within the Actions tool cache. - The tool cache now contains **two** recent CodeQL versions (previously **one**). - Each CodeQL version is located under a directory named after the release date and version number, e.g. CodeQL 2.11.6 is now located under `CodeQL/2.11.6-20221211/x64/codeql` (previously `CodeQL/0.0.0-20221211/x64/codeql`). -- Python automatic dependency installation will no longer fail for projects using Poetry that specify `virtualenvs.options.no-pip = true` in their `poetry.toml`. [#1431](https://github.com/github/codeql-action/pull/1431). + +## 2.1.39 - 18 Jan 2023 + +- CodeQL Action v1 is now deprecated, and is no longer updated or supported. For better performance, improved security, and new features, upgrade to v2. For more information, see [this changelog post](https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/). [#1467](https://github.com/github/codeql-action/pull/1466) +- Python automatic dependency installation will no longer fail for projects using Poetry that specify `virtualenvs.options.no-pip = true` in their `poetry.toml`. [#1431](https://github.com/github/codeql-action/pull/1431) - Avoid printing a stack trace and error message when the action fails to find the SHA at the current directory. This will happen in several non-error states and so we now avoid cluttering the log with this message. [#1485](https://github.com/github/codeql-action/pull/1485) @@ -32,7 +36,7 @@ - Update default CodeQL bundle version to 2.11.5. [#1412](https://github.com/github/codeql-action/pull/1412) - Add a step that tries to upload a SARIF file for the workflow run when that workflow run fails. This will help better surface failed code scanning workflow runs. [#1393](https://github.com/github/codeql-action/pull/1393) -- Python automatic dependency installation will no longer consider dependecy code installed in venv as user-written, for projects using Poetry that specify `virtualenvs.in-project = true` in their `poetry.toml`. [#1419](https://github.com/github/codeql-action/pull/1419). +- Python automatic dependency installation will no longer consider dependency code installed in venv as user-written, for projects using Poetry that specify `virtualenvs.in-project = true` in their `poetry.toml`. [#1419](https://github.com/github/codeql-action/pull/1419) ## 2.1.35 - 01 Dec 2022 @@ -81,7 +85,7 @@ No user facing changes. ## 2.1.25 - 21 Sep 2022 - 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. -- Add support for Python automatic dependency installation with Poetry 1.2 [#1258](https://github.com/github/codeql-action/pull/1258). +- Add support for Python automatic dependency installation with Poetry 1.2 [#1258](https://github.com/github/codeql-action/pull/1258) ## 2.1.24 - 16 Sep 2022 @@ -333,7 +337,7 @@ No user facing changes. ## 1.0.4 - 28 Jun 2021 - Fix `RUNNER_TEMP environment variable must be set` when using runner. [#594](https://github.com/github/codeql-action/pull/594) -- Fix couting of lines of code for C# projects. [#586](https://github.com/github/codeql-action/pull/586) +- Fix counting of lines of code for C# projects. [#586](https://github.com/github/codeql-action/pull/586) ## 1.0.3 - 23 Jun 2021 diff --git a/lib/util.js b/lib/util.js index 92de9efc15..7c12d4268b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -31,7 +31,6 @@ const core = __importStar(require("@actions/core")); const del_1 = __importDefault(require("del")); const get_folder_size_1 = __importDefault(require("get-folder-size")); const semver = __importStar(require("semver")); -const api = __importStar(require("./api-client")); const api_client_1 = require("./api-client"); const apiCompatibility = __importStar(require("./api-compatibility.json")); const codeql_1 = require("./codeql"); @@ -530,26 +529,15 @@ exports.getMlPoweredJsQueriesStatus = getMlPoweredJsQueriesStatus; * Prompt the customer to upgrade to CodeQL Action v2, if appropriate. * * Check whether a customer is running v1. If they are, and we can determine that the GitHub - * instance supports v2, then log a warning about v1's upcoming deprecation prompting the customer - * to upgrade to v2. + * instance supports v2, then log an error that v1 is deprecated and prompt the customer to + * upgrade to v2. */ async function checkActionVersion(version) { - var _a; if (!semver.satisfies(version, ">=2")) { - const githubVersion = await api.getGitHubVersion(); - // Only log a warning for versions of GHES that are compatible with CodeQL Action version 2. - // - // GHES 3.4 shipped without the v2 tag, but it also shipped without this warning message code. - // Therefore users who are seeing this warning message code have pulled in a new version of the - // Action, and with it the v2 tag. - if (githubVersion.type === GitHubVariant.DOTCOM || - githubVersion.type === GitHubVariant.GHAE || - (githubVersion.type === GitHubVariant.GHES && - semver.satisfies((_a = semver.coerce(githubVersion.version)) !== null && _a !== void 0 ? _a : "0.0.0", ">=3.4"))) { - core.warning("CodeQL Action v1 will be deprecated on January 18th, 2023. Please upgrade to v2. For " + - "more information, see " + - "https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/"); - } + core.error("This version of the CodeQL Action was deprecated on January 18th, 2023, and is no longer " + + "updated or supported. For better performance, improved security, and new features, " + + "upgrade to v2. For more information, see " + + "https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/"); } } exports.checkActionVersion = checkActionVersion; diff --git a/lib/util.js.map b/lib/util.js.map index a32e77240b..2301ef153b 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AACzB,uCAAyB;AAC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;IAED,2DAA2D;IAC3D,IACE,CAAC,CAAC,MAAM,kBAAkB,CAAC,QAAQ,CACjC,uBAAO,CAAC,iCAAiC,CAC1C,CAAC,EACF;QACA,OAAO,KAAK,CAAC;KACd;IAED,8EAA8E;IAC9E,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,MAAM,IAAA,8BAAe,EAC1D,cAAc,EACd,UAAU,EACV,MAAM,CACP,CAAC;IACF,IAAI,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,+BAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7E,IAAI,MAAM,EAAE;QACV,MAAM,CAAC,IAAI,CACT,uDAAuD,YAAY,EAAE,CACtE,CAAC;KACH;SAAM,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,QAAQ,CAAC,oBAAQ,CAAC,IAAI,CAAC,EAAE;QAChE,kEAAkE;QAClE,wEAAwE;QACxE,MAAM,WAAW,GAAG,MAAM,IAAA,iCAAkB,EAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QACjE,IAAI,WAAW,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;YAClC,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;YAC/C,MAAM,GAAG,IAAI,CAAC;SACf;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AA/CD,sDA+CC;AAED,SAAgB,gBAAgB,CAC9B,WAA+B;IAE/B,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,MAAM,EAAE;QACvD,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC;AAPD,4CAOC"} \ No newline at end of file diff --git a/lib/util.test.js b/lib/util.test.js index b182d9d2cf..41961c39ca 100644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -259,7 +259,7 @@ function formatGitHubVersion(version) { const CHECK_ACTION_VERSION_TESTS = [ ["1.2.1", { type: util.GitHubVariant.DOTCOM }, true], ["1.2.1", { type: util.GitHubVariant.GHAE }, true], - ["1.2.1", { type: util.GitHubVariant.GHES, version: "3.3" }, false], + ["1.2.1", { type: util.GitHubVariant.GHES, version: "3.3" }, true], ["1.2.1", { type: util.GitHubVariant.GHES, version: "3.4" }, true], ["1.2.1", { type: util.GitHubVariant.GHES, version: "3.5" }, true], ["2.2.1", { type: util.GitHubVariant.DOTCOM }, false], @@ -268,22 +268,22 @@ const CHECK_ACTION_VERSION_TESTS = [ ["2.2.1", { type: util.GitHubVariant.GHES, version: "3.4" }, false], ["2.2.1", { type: util.GitHubVariant.GHES, version: "3.5" }, false], ]; -for (const [version, githubVersion, shouldReportWarning,] of CHECK_ACTION_VERSION_TESTS) { - const reportWarningDescription = shouldReportWarning - ? "reports warning" - : "doesn't report warning"; +for (const [version, githubVersion, shouldReportError,] of CHECK_ACTION_VERSION_TESTS) { + const reportErrorDescription = shouldReportError + ? "reports error" + : "doesn't report error"; const versionsDescription = `CodeQL Action version ${version} and GitHub version ${formatGitHubVersion(githubVersion)}`; - (0, ava_1.default)(`checkActionVersion ${reportWarningDescription} for ${versionsDescription}`, async (t) => { - const warningSpy = sinon.spy(core, "warning"); + (0, ava_1.default)(`checkActionVersion ${reportErrorDescription} for ${versionsDescription}`, async (t) => { + const errorSpy = sinon.spy(core, "error"); const versionStub = sinon .stub(api, "getGitHubVersion") .resolves(githubVersion); await util.checkActionVersion(version); - if (shouldReportWarning) { - t.true(warningSpy.calledOnceWithExactly(sinon.match("CodeQL Action v1 will be deprecated"))); + if (shouldReportError) { + t.true(errorSpy.calledOnceWithExactly(sinon.match("This version of the CodeQL Action was deprecated on January 18th, 2023"))); } else { - t.false(warningSpy.called); + t.false(errorSpy.called); } versionStub.restore(); }); diff --git a/lib/util.test.js.map b/lib/util.test.js.map index aee0b0ac3b..7e72d3368d 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -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AAC;QACF,CAAC,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnC,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/pr-checks/sync.py b/pr-checks/sync.py index 74dd8c854c..219e7335cb 100644 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -132,7 +132,7 @@ def writeHeader(checkStream): }, 'on': { 'push': { - 'branches': ['main', 'releases/v1', 'releases/v2'] + 'branches': ['main', 'releases/v2'] }, 'pull_request': { 'types': ["opened", "synchronize", "reopened", "ready_for_review"] diff --git a/src/util.test.ts b/src/util.test.ts index d1b614dacf..8d17aeee57 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -328,7 +328,7 @@ const CHECK_ACTION_VERSION_TESTS: Array<[string, util.GitHubVersion, boolean]> = [ ["1.2.1", { type: util.GitHubVariant.DOTCOM }, true], ["1.2.1", { type: util.GitHubVariant.GHAE }, true], - ["1.2.1", { type: util.GitHubVariant.GHES, version: "3.3" }, false], + ["1.2.1", { type: util.GitHubVariant.GHES, version: "3.3" }, true], ["1.2.1", { type: util.GitHubVariant.GHES, version: "3.4" }, true], ["1.2.1", { type: util.GitHubVariant.GHES, version: "3.5" }, true], ["2.2.1", { type: util.GitHubVariant.DOTCOM }, false], @@ -341,28 +341,30 @@ const CHECK_ACTION_VERSION_TESTS: Array<[string, util.GitHubVersion, boolean]> = for (const [ version, githubVersion, - shouldReportWarning, + shouldReportError, ] of CHECK_ACTION_VERSION_TESTS) { - const reportWarningDescription = shouldReportWarning - ? "reports warning" - : "doesn't report warning"; + const reportErrorDescription = shouldReportError + ? "reports error" + : "doesn't report error"; const versionsDescription = `CodeQL Action version ${version} and GitHub version ${formatGitHubVersion( githubVersion )}`; - test(`checkActionVersion ${reportWarningDescription} for ${versionsDescription}`, async (t) => { - const warningSpy = sinon.spy(core, "warning"); + test(`checkActionVersion ${reportErrorDescription} for ${versionsDescription}`, async (t) => { + const errorSpy = sinon.spy(core, "error"); const versionStub = sinon .stub(api, "getGitHubVersion") .resolves(githubVersion); await util.checkActionVersion(version); - if (shouldReportWarning) { + if (shouldReportError) { t.true( - warningSpy.calledOnceWithExactly( - sinon.match("CodeQL Action v1 will be deprecated") + errorSpy.calledOnceWithExactly( + sinon.match( + "This version of the CodeQL Action was deprecated on January 18th, 2023" + ) ) ); } else { - t.false(warningSpy.called); + t.false(errorSpy.called); } versionStub.restore(); }); diff --git a/src/util.ts b/src/util.ts index fd368b59b7..0684cbefa9 100644 --- a/src/util.ts +++ b/src/util.ts @@ -8,7 +8,6 @@ import del from "del"; import getFolderSize from "get-folder-size"; import * as semver from "semver"; -import * as api from "./api-client"; import { getApiClient, GitHubApiDetails } from "./api-client"; import * as apiCompatibility from "./api-compatibility.json"; import { CodeQL, CODEQL_VERSION_NEW_TRACING } from "./codeql"; @@ -633,32 +632,17 @@ export function getMlPoweredJsQueriesStatus(config: Config): string { * Prompt the customer to upgrade to CodeQL Action v2, if appropriate. * * Check whether a customer is running v1. If they are, and we can determine that the GitHub - * instance supports v2, then log a warning about v1's upcoming deprecation prompting the customer - * to upgrade to v2. + * instance supports v2, then log an error that v1 is deprecated and prompt the customer to + * upgrade to v2. */ export async function checkActionVersion(version: string) { if (!semver.satisfies(version, ">=2")) { - const githubVersion = await api.getGitHubVersion(); - // Only log a warning for versions of GHES that are compatible with CodeQL Action version 2. - // - // GHES 3.4 shipped without the v2 tag, but it also shipped without this warning message code. - // Therefore users who are seeing this warning message code have pulled in a new version of the - // Action, and with it the v2 tag. - if ( - githubVersion.type === GitHubVariant.DOTCOM || - githubVersion.type === GitHubVariant.GHAE || - (githubVersion.type === GitHubVariant.GHES && - semver.satisfies( - semver.coerce(githubVersion.version) ?? "0.0.0", - ">=3.4" - )) - ) { - core.warning( - "CodeQL Action v1 will be deprecated on January 18th, 2023. Please upgrade to v2. For " + - "more information, see " + - "https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/" - ); - } + core.error( + "This version of the CodeQL Action was deprecated on January 18th, 2023, and is no longer " + + "updated or supported. For better performance, improved security, and new features, " + + "upgrade to v2. For more information, see " + + "https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/" + ); } }