ci: mount .git dir rw

On merges to master we set LINT_CI_SANITY_CHECK_COMMIT_SIG (when
"GITHUB_REPOSITORY == bitcoin/bitcoin") which runs verify-commits.py.

This requires write access to the .git directory.
Make the mounted .git directory writable.

This is currently not run on PR branches or locally which caused a miss
during review.
This commit is contained in:
ci 2026-01-28 10:36:39 +00:00
parent 1d3243806d
commit c8abac9941
No known key found for this signature in database
GPG Key ID: CE6EC49945C17EA6

View File

@ -31,7 +31,7 @@ def get_worktree_mounts(repo_root):
main_gitdir = gitdir.parent.parent
return [
f"--volume={gitdir}:{gitdir}",
f"--volume={main_gitdir}:{main_gitdir}:ro",
f"--volume={main_gitdir}:{main_gitdir}",
]