forked from github/pre-commit-opentofu
feat: Allow running container as non-root UID/GID for ownership issues (docker) (#433)
Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua> Co-authored-by: MaxymVlasov <MaxymVlasov@users.noreply.github.com> Co-authored-by: Anton Babenko <anton@antonbabenko.com>
This commit is contained in:
parent
005134b4d3
commit
abc2570e42
7 changed files with 143 additions and 6 deletions
|
|
@ -414,6 +414,9 @@ function create_tmp_file_tf {
|
|||
mv "$tmp_file" "$tmp_file.tf"
|
||||
tmp_file_tf="$tmp_file.tf"
|
||||
|
||||
# mktemp creates with no group/other read permissions
|
||||
chmod a+r "$tmp_file_tf"
|
||||
|
||||
echo "$CONTENT_MAIN_TF" > "$tmp_file_tf"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue