Skip to content

Commit 97b82ed

Browse files
authored
Merge pull request #36 from rtCamp/fix/git-unsafe-repo
Fix ownership issue for new git version
2 parents 25780e2 + cd6ebd5 commit 97b82ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ function setup_ssh_access() {
138138

139139
function maybe_install_submodules() {
140140

141+
# Change directory ownership to container user due to issue https://github.com/actions/checkout/issues/760
142+
# This will be changed to www-data or similar on deployment by deployer.
143+
chown -R root: "$GITHUB_WORKSPACE"
141144
# Check and update submodules if any
142145
if [[ -f "$GITHUB_WORKSPACE/.gitmodules" ]]; then
143146
# add github's public key

0 commit comments

Comments
 (0)