Skip to content

Fix CodeQL query path without copy step#9

Merged
pjbgf merged 1 commit into
go-git:mainfrom
AriehSchneier:fix-codeql-query-path
May 9, 2026
Merged

Fix CodeQL query path without copy step#9
pjbgf merged 1 commit into
go-git:mainfrom
AriehSchneier:fix-codeql-query-path

Conversation

@AriehSchneier
Copy link
Copy Markdown
Contributor

Simplifies the CodeQL workflow by removing the copy step and using inline config.

Now CodeQL operates from the workspace root and analyzes only the go-git directory (via paths config). The query path is resolved from workspace root where the codeql directory exists.

Fixes the error: ./queries/unclosed-resources.ql is not a .ql file

Remove the copy step and use inline config with a relative path
from the go-git source-root to the codeql queries directory.

Assisted-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Arieh Schneier <15041913+AriehSchneier@users.noreply.github.com>
Copy link
Copy Markdown
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AriehSchneier thanks for working on this. 🙇

@pjbgf pjbgf merged commit 990a634 into go-git:main May 9, 2026
6 checks passed
@AriehSchneier AriehSchneier deleted the fix-codeql-query-path branch May 10, 2026 13:22
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