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 — Reduce the minimum Git version required for overlay by henrymercer · Pull Request #3767 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Use the --stage option for git ls-files instead of --format to reduce the minimum Git version for overlay from 2.38.0 (released October 2022) to 2.11.0 (released November 2016).

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Which use cases does this change impact?

Workflow types:

  • Advanced setup - Impacts users who have custom CodeQL workflows.
  • Managed - Impacts users with dynamic workflows (Default Setup, Code Quality, ...).

Products:

  • Code Scanning - The changes impact analyses when analysis-kinds: code-scanning.

Environments:

  • Dotcom - Impacts CodeQL workflows on github.com and/or GitHub Enterprise Cloud with Data Residency.

How did/will you validate this change?

  • Unit tests - I am depending on unit test coverage (i.e. tests in .test.ts files).

If something goes wrong after this change is released, what are the mitigation and rollback strategies?

  • Feature flags - All new or changed code paths can be fully disabled with corresponding feature flags.

How will you know if something goes wrong after this change is released?

  • Telemetry - I rely on existing telemetry or have made changes to the telemetry.
    • Alerts - New or existing monitors will trip if something goes wrong with this change.

Are there any special considerations for merging or releasing this change?

  • No special considerations - This change can be merged at any time.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

Sorry, something went wrong.

Uh oh!

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

All reactions
henrymercer added 3 commits March 23, 2026 18:33
@henrymercer
Use --stage instead of --format in git ls-files
d48d054
@henrymercer
Update minimum Git version required for overlay
28f56f2
@henrymercer
Add changelog note
8c023a6
Copilot AI review requested due to automatic review settings March 23, 2026 18:44
@henrymercer
henrymercer requested a review from a team as a code owner March 23, 2026 18:44
@github-actions github-actions Bot added the size/S Should be easy to review label Mar 23, 2026
Copilot started reviewing on behalf of henrymercer March 23, 2026 18:45
View session
Copilot AI reviewed Mar 23, 2026
View reviewed changes

Copilot AI 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.

Pull request overview

This PR lowers the minimum Git version needed for overlay (improved incremental) analysis by changing how tracked file OIDs are gathered from Git, improving compatibility with older runner images/environments.

Changes:

  • Switch getFileOidsUnderPath from git ls-files --format=... (Git ≥2.38) to git ls-files --stage (compatible with Git ≥2.11 when combined with --recurse-submodules).
  • Update unit tests to reflect the new --stage output format and parsing.
  • Add a changelog entry documenting the reduced minimum Git requirement.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/git-utils.ts Lowers the overlay minimum Git version and updates getFileOidsUnderPath to parse git ls-files --stage output.
src/git-utils.test.ts Updates/extends tests to validate parsing of --stage output, including quoted/escaped paths.
src/config-utils.test.ts Adjusts the “old git version” fallback test to reflect the new 2.11.0 minimum.
CHANGELOG.md Documents the reduced minimum Git version for improved incremental analysis.
lib/upload-sarif-action.js Generated JS update reflecting the TypeScript change.
lib/upload-lib.js Generated JS update reflecting the TypeScript change.
lib/setup-codeql-action.js Generated JS update reflecting the TypeScript change.
lib/resolve-environment-action.js Generated JS update reflecting the TypeScript change.
lib/init-action.js Generated JS update reflecting the TypeScript change (including minimum version constant).
lib/init-action-post.js Generated JS update reflecting the TypeScript change.
lib/autobuild-action.js Generated JS update reflecting the TypeScript change.
lib/analyze-action.js Generated JS update reflecting the TypeScript change.
lib/analyze-action-post.js Generated JS update reflecting the TypeScript change.

Sorry, something went wrong.

Uh oh!

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

All reactions
redsun82
redsun82 approved these changes Mar 24, 2026
View reviewed changes
@henrymercer
henrymercer added this pull request to the merge queue Mar 24, 2026
Merged via the queue into main with commit eedab83 Mar 24, 2026
229 checks passed

Uh oh!

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

@henrymercer
henrymercer deleted the henrymercer/overlay-reduce-minimum-git-version branch March 24, 2026 11:46
This was referenced Mar 27, 2026
Merge main into releases/v4 #3774
Closed
Merge main into releases/v4 #3776
Merged
Merge releases/v4 into releases/v3 #3778
Merged
@github-actions github-actions Bot mentioned this pull request May 18, 2026
chore(ci)(deps): bump github/codeql-action from 3.35.4 to 4.35.5 ag-ui-protocol/ag-ui#1711
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@redsun82 redsun82 redsun82 approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

size/S Should be easy to review

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.

3 participants

@henrymercer @redsun82
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.