Skip to content

Commit 626b499

Browse files
authored
Merge pull request #19 from tulilirockz/main
shellcheck_run_steps: use `:Z` volume mount for SELinux relabeling if suppored
2 parents 70fee29 + 12d4789 commit 626b499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pre_commit_hooks/shellcheck_run_steps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def main(argv: Sequence[str] | None = None) -> int:
8686
default=[
8787
"docker",
8888
"run",
89-
f"--volume={os.getcwd()}:/mnt",
89+
f"--volume={os.getcwd()}:/mnt:Z",
9090
"--rm",
9191
DefaultShellCheckImage,
9292
],
@@ -116,7 +116,7 @@ def main(argv: Sequence[str] | None = None) -> int:
116116
[
117117
"docker",
118118
"run",
119-
f"--volume={os.getcwd()}:/work",
119+
f"--volume={os.getcwd()}:/work:Z",
120120
"--rm",
121121
MelangeImage,
122122
"compile",

0 commit comments

Comments
 (0)