ci: upgrade CodeQL Action v2 -> v4 (deprecation maintenance) - #1431
Open
Rishabh Jain (MrRishabhJain) wants to merge 2 commits into
Open
ci: upgrade CodeQL Action v2 -> v4 (deprecation maintenance)#1431Rishabh Jain (MrRishabhJain) wants to merge 2 commits into
Rishabh Jain (MrRishabhJain) wants to merge 2 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5a0fd990-27f4-4a2a-8df7-3b81302917c1
Rishabh Jain (MrRishabhJain)
requested review from
Brad Flood (brflood) and
Jayanth Reddy Bujula (jbujula)
July 28, 2026 16:47
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5a0fd990-27f4-4a2a-8df7-3b81302917c1
7 tasks
Jayanth Reddy Bujula (jbujula)
approved these changes
Jul 29, 2026
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Upgrades
github/codeql-action/initandgithub/codeql-action/analyzefrom v2 to v4 in.github/workflows/codeql.yml. Two-line change, isolated from any product code.Why
CodeQL Action v1/v2 were deprecated in January 2025. Every CodeQL run on this repo currently logs:
This is not currently fatal - the Analyze job still succeeds - but it is emitted as an error on every run, and will hard-fail once GitHub completes enforcement. This PR gets ahead of that. The repo is currently two major versions behind.
Correction to the earlier description
An earlier version of this description claimed CodeQL Action v2 was causing CodeQL checks to fail on #1430. That was incorrect.
Attempts 1 and 2 of the CodeQL run on #1430 both failed at the
Install npm dependenciesstep withnpm E401onGPR_ACCESS_TOKEN- the same root cause as thebuildjob failures. After that secret was rotated, attempt 3 passed oncodeql-action@v2with no workflow change.So this PR is pre-emptive maintenance, not a fix for a live failure. It is not blocking anything and can be merged whenever convenient.
Validation
github/codeql-actionreferences incodeql.ymlnow use@v4git diff --check@v4and ran the workflow through to the dependency stepNote on remaining deprecations
codeql.ymlalso still usesactions/checkout@v3andactions/setup-node@v3, which emit Node 20 deprecation warnings. Those are left untouched here to keep this diff minimal, but are worth a follow-up.Related: #1430