Add github-codeql-tools repository property for tools input#3766
Draft
Add github-codeql-tools repository property for tools input#3766
github-codeql-tools repository property for tools input#3766Conversation
Co-authored-by: oscarsj <1410188+oscarsj@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/codeql-action/sessions/24ef386a-5e4a-4630-b138-747d6c5729da
Copilot
AI
changed the title
[WIP] Add repository property for tools input in CodeQL Action
Add Mar 23, 2026
github-codeql-tools repository property for tools input
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.
Large organizations downloading a pinned CodeQL CLI version on every analysis run can hit rate limits. This adds a
github-codeql-toolsrepository property that lets org admins set the tools source at org level, avoiding per-run downloads.What changes
New repository property:
github-codeql-toolsgithub-codeql-tools: toolcache)toolsinput — explicit workflow-leveltoolsinput always takes precedencetoolcachevalue works without requiring theAllowToolcacheInputfeature flag or adynamicworkflow trigger, since the org admin is explicitly opting inImplementation
RepositoryPropertyName.TOOLS = "github-codeql-tools"to the existing property enum/type system insrc/feature-flags/properties.tstoolsInputFromRepositoryPropertyflag through the call chain:initCodeQL→setupCodeQL→setupCodeQLBundle→getCodeQLSourcegetCodeQLSource,toolcachewith this flag set bypasses the feature-flag/dynamic-workflow guard and emits distinct log messages referencing the repository property name rather thantools: toolcacheinit-action.tsresolves the effective tools input: workflow input wins; property is used only when no explicit input is givenRisk assessment
High risk: Not fully under a feature flag — the new code path activates when the repository property is set.
Which use cases does this change impact?
Workflow types:
dynamicworkflows (Default Setup, Code Quality, ...).Products:
analysis-kinds: code-scanning.analysis-kinds: code-quality.Environments:
github.comand/or GitHub Enterprise Cloud with Data Residency.How did/will you validate this change?
.test.tsfiles).If something goes wrong after this change is released, what are the mitigation and rollback strategies?
The repository property must be explicitly set by an org admin; no existing workflows are affected unless they set
github-codeql-tools.How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.