Skip to content

CodeQL fails to get Git version #3962

@ixfd64

Description

@ixfd64

Since about six months ago, CodeQL has been unable to automatically detect the Git version. This causes a warning to be thrown: https://github.com/primesearch/mfaktc/actions/runs/27564026256

Could not determine Git version: Unable to locate executable file: git. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

It doesn't actually affect the workflow because the Action falls back to the GitHub API for downloading the repo. However, I'd like to silence the warning so that the workflow output is less cluttered.

We are using v4 for all CodeQL-related Actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions