@@ -60,7 +60,7 @@ def set_git_config(git, email, name):
60
60
61
61
62
62
def set_git_remote_url (git , token , github_repository ):
63
- git .remote ('set-url' , 'origin' , "https://%s:x-oauth-basic @github.com/%s" % (token , github_repository ))
63
+ git .remote ('set-url' , 'origin' , "https://x-access-token:%s @github.com/%s" % (token , github_repository ))
64
64
65
65
66
66
def commit_changes (git , branch , commit_message ):
@@ -82,7 +82,6 @@ def process_event(event_name, event_data, repo, branch, base):
82
82
# Fetch required environment variables
83
83
github_token = os .environ ['GITHUB_TOKEN' ]
84
84
github_repository = os .environ ['GITHUB_REPOSITORY' ]
85
- repo_access_token = os .environ ['REPO_ACCESS_TOKEN' ]
86
85
# Fetch remaining optional environment variables
87
86
commit_message = os .getenv (
88
87
'COMMIT_MESSAGE' ,
@@ -99,7 +98,7 @@ def process_event(event_name, event_data, repo, branch, base):
99
98
# Set git configuration
100
99
set_git_config (repo .git , author_email , author_name )
101
100
# Update URL for the 'origin' remote
102
- set_git_remote_url (repo .git , repo_access_token , github_repository )
101
+ set_git_remote_url (repo .git , github_token , github_repository )
103
102
104
103
# Commit the repository changes
105
104
print ("Committing changes." )
0 commit comments