diff --git a/.github/scripts/depexts/generate-actions.sh b/.github/scripts/depexts/generate-actions.sh index f089ca95d36..60913cd3c0d 100644 --- a/.github/scripts/depexts/generate-actions.sh +++ b/.github/scripts/depexts/generate-actions.sh @@ -117,7 +117,6 @@ ENV OPAMYES=1 ENV OPAMCONFIRMLEVEL=unsafe-yes ENV OPAMPRECISETRACKING=1 COPY opam /usr/bin/opam -RUN git config --global --add safe.directory /github/workspace RUN echo 'default-invariant: [ $OCAML_INVARIANT ]' > /opam/opamrc RUN /usr/bin/opam init --no-setup --disable-sandboxing --bare --config /opam/opamrc git+$OPAM_REPO#$OPAM_REPO_SHA RUN echo 'archive-mirrors: "https://opam.ocaml.org/cache"' >> \$OPAMROOT/config @@ -134,6 +133,7 @@ cat >$dir/entrypoint.sh << EOF #!/bin/sh set -eux +git config --global --add safe.directory /github/workspace # Workdir is /github/workpaces cd /github/workspace