Skip to content

Commit 12d4789

Browse files
committed
shellcheck_run_steps: use :Z volume mount for SELinux relabeling if suppored
Signed-off-by: Arthur Exaltação <arthur.exaltacao@chainguard.dev>
1 parent 70fee29 commit 12d4789

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)