File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,12 @@ jobs:
190190 uses : actions/setup-python@v5
191191 with :
192192 python-version : " 3.12"
193+ - name : " Setup git credentials"
194+ run : " git config --global user.name 'Infrahub' && \
195+ git config --global user.email '[email protected] ' && \ 196+ git config --global --add safe.directory '*' && \
197+ git config --global credential.usehttppath true && \
198+ git config --global credential.helper /usr/local/bin/infrahub-git-credential"
193199 - name : " Setup environment"
194200 run : |
195201 pipx install poetry==1.8.5
Original file line number Diff line number Diff line change 22
33import asyncio
44import shutil
5- import os
65from dataclasses import dataclass , field
76from enum import Enum
87from pathlib import Path
@@ -60,18 +59,17 @@ def path(self) -> str:
6059
6160 def init (self ) -> None :
6261 self .dst_directory .mkdir (parents = True , exist_ok = True )
63- os .chmod (self .dst_directory , 0o777 )
64-
62+
6563 dest_path = self .dst_directory / self .name
6664 if dest_path .exists ():
6765 shutil .rmtree (dest_path )
68-
66+
6967 dest = shutil .copytree (
7068 src = self .src_directory ,
7169 dst = dest_path ,
7270 ignore = shutil .ignore_patterns (".git" , * self .directories_to_ignore ),
7371 )
74-
72+ dest_path . chmod ( 0o755 )
7573 print (dest )
7674
7775 self ._repo = GitRepoManager (str (Path (self .dst_directory / self .name )), branch = self .initial_branch )
You can’t perform that action at this time.
0 commit comments