From 05b344dc8b69dc1a5b6a4699166125a30697c3b4 Mon Sep 17 00:00:00 2001 From: RemiZOffAlex Date: Sun, 22 Mar 2026 09:54:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20executor/cli/git.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- executor/cli/git.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/executor/cli/git.py b/executor/cli/git.py index c39e942..dd0e0c5 100644 --- a/executor/cli/git.py +++ b/executor/cli/git.py @@ -45,6 +45,9 @@ def handle_git(args): REPOSITORY = INPUT_REPOSITORY REF = INPUT_REF + data = f'https://{GITHUB_ACTOR}:{INPUT_TOKEN}@codex.r10x.net' + with open('/tmp/.git-credentials', 'w') as f: + f.write(data) #response = requests.get( # url='https://codex.r10x.net/api/v1/repos/meta/dsl', # headers={ @@ -79,6 +82,9 @@ def handle_git(args): result = os.popen(cmd) print(result.read()) + cmd = 'git config --global credential.helper store --file /tmp/.git-credentials' + exec_cmd(cmd) + cmd = f'git -C ' + INPUT_PATH + ' init' exec_cmd(cmd)