Unpin CodeQL pack dependencies by removing committed lock files#45
Draft
Unpin CodeQL pack dependencies by removing committed lock files#45
Conversation
Open
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-template/sessions/a6282c16-1661-4d3b-b8ae-3a50f516d757 Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove specific CodeQL versions and update packs
Unpin CodeQL pack dependencies by removing committed lock files
Apr 21, 2026
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.
📝 Query Update
actions,cpp,csharp,go,java,javascript,python,ruby)🎯 Changes
What Changed
codeql-pack.lock.ymlfiles underlanguages/<lang>/{custom,tools}/{src,test}/.codeql-pack.lock.ymlto.gitignoreso locally generated lock files are not re-committed.qlpack.ymlfiles — they already declarecodeql/*-all(and*-queries) as"*".Why This Change
Committed lock files pinned packs to old versions (e.g.
codeql/java-all 7.7.0), blocking template consumers from using features tied to newer libraries — for example, thebarrierModelextensible predicate, which requirescodeql/java-allshipped with CodeQL 2.25.2+.Impact
Consumers of this template generate their own
codeql-pack.lock.ymloncodeql pack install, resolving against whichever CodeQL CLI they have installed. The template no longer dictates a CodeQL version floor/ceiling.🔍 Before vs. After
Previous Behavior
codeql-pack.lock.ymlchecked into the repo pinned every transitive dependency, e.g.:New Behavior
Only
qlpack.ymlis tracked, with floating versions:Lock files are produced locally per consumer and ignored by git.
🧪 Testing
📊 Impact Analysis
barrierModel)📋 Checklist
🔗 References