Skip to content

fix: checkout before CodeQL path filtering#83

Merged
s302 merged 1 commit intomainfrom
fix/codeql-paths-filter-checkout
May 5, 2026
Merged

fix: checkout before CodeQL path filtering#83
s302 merged 1 commit intomainfrom
fix/codeql-paths-filter-checkout

Conversation

@keting
Copy link
Copy Markdown
Owner

@keting keting commented May 5, 2026

Summary

Fix the CodeQL Gate workflow failing in the Detect CodeQL Targets job on push events.

dorny/paths-filter@v3 calls git commands when evaluating changed paths. The job did not check out the repository first, so the runner had no .git directory and failed with:

fatal: not a git repository (or any of the parent directories): .git

This PR adds actions/checkout@v4 before dorny/paths-filter@v3 in .github/workflows/codeql.yml.

Validation

@s302 s302 merged commit 1f00f0a into main May 5, 2026
9 checks passed
@s302 s302 deleted the fix/codeql-paths-filter-checkout branch May 5, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants