# Code scanning: deprecation of CodeQL Action v2

DevFeed: [Code scanning: deprecation of CodeQL Action v2](<https://devfeed.tech/articles/code-scanning-deprecation-of-codeql-action-v2-73239.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2>)

Author: Jon Janego

Published: 2024-01-12T12:06:20Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [code security](<https://devfeed.tech/topics/code-security.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [versioning](<https://devfeed.tech/topics/versioning.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [advanced](<https://devfeed.tech/tags/advanced.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [code-scanning](<https://devfeed.tech/tags/code-scanning.md>), [codeql](<https://devfeed.tech/tags/codeql.md>), [dependabot](<https://devfeed.tech/tags/dependabot.md>), [deprecation](<https://devfeed.tech/tags/deprecation.md>), [ghes](<https://devfeed.tech/tags/ghes.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [github-com](<https://devfeed.tech/tags/github-com.md>), [github-connect](<https://devfeed.tech/tags/github-connect.md>), [github-enterprise-server](<https://devfeed.tech/tags/github-enterprise-server.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [migrate](<https://devfeed.tech/tags/migrate.md>), [migration](<https://devfeed.tech/tags/migration.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [v2](<https://devfeed.tech/tags/v2.md>), [v3](<https://devfeed.tech/tags/v3.md>)

## AI overview

CodeQL Action v2 was scheduled for deprecation alongside GHES 3.11 in December 2024; after that, v2 would receive no updates, and new CodeQL analysis capabilities would be available only through v3. Code scanning default setup moves to v3 automatically, while advanced setup users on GitHub.com and GHES 3.12 or newer should replace `@v2` with `@v3` in their workflow action references. GHES 3.12 ships with v3. GHES 3.11 supports Node 20 but does not include v3; migrating there requires an administrator to enable GitHub Connect so it can be downloaded. GHES 3.10 and earlier cannot run Node 20 Actions, so those installations need an upgrade before switching workflows.

## Source excerpt

On December 13, 2023, we released CodeQL Action v3, which runs on the Node.js 20 runtime. CodeQL Action v2 will be deprecated at the same time as GHES 3.11, which...