GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Deprecate CodeQL Action v2 by angelapwen · Pull Request #2677 · github/codeql-action

Conversation

@angelapwen

@angelapwen angelapwen commented Jan 7, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Following the excellent instructions documented, this PR:

  • converts the deprecation warning to an error
  • removes mentions to v2 in documentation (and tries to generalize them so that future versions will not need so many documentation changes)
  • adds a changenote for the deprecation
  • adds a section about adding a new Action major version to CONTRIBUTING.md for future reference.

Note that this PR should not be merged until a public changelog post is published, and then linked to in the error message & changelog entry here.

After this PR is merged and released to releases/v3 and releases/v2, we can update the OLDEST_SUPPORTED_MAJOR_VERSION variable in releases.ini to 2.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

aeisenberg reacted with thumbs up emoji henrymercer reacted with hooray emoji
All reactions
  • 👍 1 reaction
  • 🎉 1 reaction
angelapwen added 3 commits January 7, 2025 13:59
@angelapwen
Change OLDEST_SUPPORTED_MAJOR_VERSION to 3
a06dbc6
@angelapwen
Convert deprecation warning to error
04b5afa
@angelapwen
Remove mentions to v2 in documentation
913d605
@angelapwen angelapwen added the DO NOT MERGE This pull request should not be merged yet label Jan 7, 2025
@angelapwen
[WIP] Add changenote for deprecation
4541c13
@angelapwen
angelapwen force-pushed the angelapwen/deprecate-action-v2 branch from 645e36c to 4541c13 Compare January 7, 2025 22:01
@angelapwen
angelapwen requested a review from nickfyson January 7, 2025 22:06
aeisenberg
aeisenberg reviewed Jan 7, 2025
View reviewed changes
Comment thread CHANGELOG.md

See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.

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.

@aeisenberg aeisenberg Jan 7, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this paragraph to the relevant location in CONTRIBUTING.md as a reminder to add it back when we introduce v4?

Or instead of copying this text directly, include a link to this text so that it can be easily found again.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

angelapwen reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@angelapwen angelapwen Jan 7, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — I actually linked to the specific docs diff in this PR; thought that would be easiest for someone to read and find the link to!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread README.md
Comment on lines -66 to -72
- v2 (deprecated, support will end on December 5th, 2024)

The only difference between CodeQL Action v2 and v3 is the version of Node.js on which they run. CodeQL Action v3 runs on Node 20, while CodeQL Action v2 runs on Node 16.

To provide the best experience to customers using older versions of GitHub Enterprise Server, we will continue to release CodeQL Action v2 so that these customers can continue to run the latest version of CodeQL as long as their version of GitHub Enterprise Server is supported. For example CodeQL Action v3.22.11 was the first release of CodeQL Action v3 and is functionally identical to v2.22.11. This approach provides an easy way to track exactly which features are included in different versions by looking at the minor and patch version numbers.

For more information, see "[Code scanning: deprecation of CodeQL Action v2](https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/)."

@aeisenberg aeisenberg Jan 7, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here as with the changelog note.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@angelapwen angelapwen Jan 7, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/util.ts
Comment on lines +1074 to +1075
* Check whether a customer is running v1 or v2. If they are, and we can determine that the GitHub
* instance supports v3, then log an error prompting the customer to upgrade to v3.

@aeisenberg aeisenberg Jan 7, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this actually going to be backported to v2? If not then there's no reason to change this check.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@angelapwen angelapwen Jan 7, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh good point. I think we'll want to then merge this without the change to releases.ini and backport to v2 so that it's the final change to v2, and then as a final step merge the change to releases.ini.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@aeisenberg aeisenberg Jan 7, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'd need to do an actual release, otherwise immutable actions won't pick it up. Maybe that's not necessary since immutable actions is not quite available publicly.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@angelapwen angelapwen Jan 7, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, sorry, so we'll need to:

  • merge this without the change to releases.ini
  • release (including to the v2 backport)
  • merge the change to releases.ini immediately after

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@angelapwen angelapwen Jan 7, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the change to releases.ini in this PR.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
angelapwen added 2 commits January 7, 2025 14:50
@angelapwen
Add section on adding a new major version
66f5682
@angelapwen
Keep OLDEST_SUPPORTED_MAJOR_VERSION to 2 for now
03d5731
So that our changes can go into `releases/v2`. We will bump `OLDEST_SUPPORTED_MAJOR_VERSION` immediately after the next release.
@angelapwen
angelapwen force-pushed the angelapwen/deprecate-action-v2 branch from 287f0ed to 03d5731 Compare January 7, 2025 22:50
nickfyson
nickfyson previously approved these changes Jan 8, 2025
View reviewed changes

@nickfyson nickfyson left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread CONTRIBUTING.md
Comment on lines +107 to +114
To add a new major version of the Action:

1. Change the `version` field of `package.json` by running `npm version x.y.z` where `x` is the new major version, and `y` and `z` match the latest minor and patch versions of the last release.
1. Update appropriate documentation to explain the reasoning behind the releases: see [the diff](https://github.com/github/codeql-action/pull/2677/commits/913d60579d4b560addf53ec3c493d491dd3c1378) in our last major version deprecation for examples on which parts of the documentation should be updated.
1. Consider the timeline behind deprecating the prior Action version: see [CodeQL Action deprecation documentation](#deprecating-a-codeql-action-major-version-write-access-required)

## Deprecating a CodeQL Action major version (write access required)

@nickfyson nickfyson Jan 8, 2025

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

(it's been a while, so I had to dig through the code to remind myself that manual creation of branch and vN+1 tag was not needed, and it seems that is indeed automatic! :phew:)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@angelapwen angelapwen Jan 8, 2025

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I actually totally forgot about that step 😆 thanks for looking into it and confirming, though!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@angelapwen
Add public changelog blog post link
8d2753b
@angelapwen
angelapwen dismissed nickfyson’s stale review via 8d2753b January 10, 2025 16:52
@angelapwen angelapwen changed the title [Do not merge] Deprecate CodeQL Action v2 Deprecate CodeQL Action v2 Jan 10, 2025
@angelapwen angelapwen removed the DO NOT MERGE This pull request should not be merged yet label Jan 10, 2025
angelapwen added 2 commits January 10, 2025 08:54
@angelapwen
Fix PR number in changenote
a05a7eb
@angelapwen
Merge branch 'main' into angelapwen/deprecate-action-v2
4df151e
@angelapwen
angelapwen marked this pull request as ready for review January 10, 2025 16:54
@angelapwen
angelapwen requested a review from a team as a code owner January 10, 2025 16:54
@angelapwen

angelapwen commented Jan 10, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

The public changelog blog post is live at https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated and I've added the link to the appropriate places in this PR, so it's now ready for re-review!

(CI will pass once the bundle upgrade PR makes it to the next release)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

henrymercer
henrymercer approved these changes Jan 10, 2025
View reviewed changes

@henrymercer henrymercer left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🫡

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@angelapwen

angelapwen commented Jan 10, 2025

Copy link
Copy Markdown
Contributor Author

There's a typo in https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated so I'll wait to merge this until that's fixed! Thanks!!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen

angelapwen commented Jan 10, 2025

Copy link
Copy Markdown
Contributor Author

And it's already fixed 😆 merging!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@angelapwen
angelapwen merged commit ea6acbf into main Jan 10, 2025
@angelapwen
angelapwen deleted the angelapwen/deprecate-action-v2 branch January 10, 2025 18:03
This was referenced Jan 10, 2025
Merge main into releases/v3 #2681
Merged
Merge releases/v3 into releases/v2 #2683
Merged
@angelapwen angelapwen mentioned this pull request Jan 10, 2025
Stop updating releases/v2 branch #2684
Merged
3 tasks done
@coderabbitai coderabbitai Bot mentioned this pull request Apr 19, 2026
Migrate prettier -> oxfmt and eslint -> oxlint hbmartin/react-mentions-ts#189
Merged
This was referenced Jul 21, 2026
ci: harden supply chain with dependency verification, SBOM, and OSV scanning cloudevents/sdk-kotlin#19
Merged
OCPBUGS-94044,OCPBUGS-86046: DS Merge 07/24/2026 openshift/multus-cni#335
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Aug 25, 2026
Pyre type checking m7mdragab/MDAX#55
Merged
@coderabbitai coderabbitai Bot mentioned this pull request Sep 16, 2026
Upgrade CodeQL actions from v3.38.0 to v4.38.0 shmindmaster/heatlot#4
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg left review comments
@henrymercer henrymercer henrymercer approved these changes
@nickfyson nickfyson nickfyson left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@angelapwen @aeisenberg @nickfyson @henrymercer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.