ci: run in worktrees
Fixes: #30028
- Run CI in worktrees by mounting the .git root target into the container
- Run the linter in worktrees by mounting the .git root target into the container
AFAIK mounting the git root should not present any additional security issues, as this would already be mounted (in RO mode) when not using a worktree.