This commit is contained in:
+4
-4
@@ -46,8 +46,8 @@ def handle_git(args):
|
||||
REF = INPUT_REF
|
||||
|
||||
data = f'https://{GITHUB_ACTOR}:{INPUT_TOKEN}@codex.r10x.net'
|
||||
with open('/tmp/.git-credentials', 'w') as f:
|
||||
f.write(data)
|
||||
with open('/tmp/.git-credentials', 'w') as fd:
|
||||
fd.write(data)
|
||||
#response = requests.get(
|
||||
# url='https://codex.r10x.net/api/v1/repos/meta/dsl',
|
||||
# headers={
|
||||
@@ -98,7 +98,7 @@ def handle_git(args):
|
||||
key = 'http.'+GITHUB_SERVER_URL+'/.extraheader'
|
||||
value = base64_string
|
||||
cmd = 'git config set --local ' + key + ' ' + escape(value)
|
||||
exec_cmd(cmd)
|
||||
#exec_cmd(cmd)
|
||||
|
||||
# key = 'url.https://'+TOKEN+':x-oauth-basic@codex.r10x.net'+'/.insteadOf'
|
||||
# value = 'git@"'+base64_string+'"'
|
||||
@@ -110,7 +110,7 @@ def handle_git(args):
|
||||
#org_id=7
|
||||
key = 'url."https://codex.r10x.net"/.insteadOf'
|
||||
value = 'git@codex.r10x.net:org-'+str(org_id)+'@codex.r10x.net:'
|
||||
#value = f'{GITHUB_ACTOR}@codex.r10x.net:'
|
||||
value = f'git@codex.r10x.net:{GITHUB_ACTOR}@codex.r10x.net:'
|
||||
exec_cmd(cmd)
|
||||
|
||||
cmd = 'git -C ' + INPUT_PATH + ' remote add origin ' + GITHUB_SERVER_URL + '/' + REPOSITORY
|
||||
|
||||
Reference in New Issue
Block a user