Skip to content

Commit

Permalink
Merge pull request #36 from rtCamp/fix/git-unsafe-repo
Browse files Browse the repository at this point in the history
Fix ownership issue for new git version
  • Loading branch information
mrrobot47 authored May 27, 2022
2 parents 25780e2 + cd6ebd5 commit 97b82ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ function setup_ssh_access() {

function maybe_install_submodules() {

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

0 comments on commit 97b82ed

Please sign in to comment.