GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GHP Authentication no longer working · Issue #1800 · gitpython-developers/GitPython

GHP Authentication no longer working #1800

New issue
Copy link
New issue
Copy link
Closed
Closed
GHP Authentication no longer working#1800
Copy link

Description

@dorochadev
dorochadev
opened on Jan 12, 2024
Issue body actions

Hello, this is the code i have been using for quite some time to update my project from github, coming back to my project after some months it appears github may have changed their api, as using ghp [email protected] no longer works, it prompts me for a password, and then states Support for password authentication was removed on August 13, 2021.

could someone please provide me with the correct way to do this?

def clone_and_replace_repository():

    git.Repo.clone_from(f"https://{config['repository']['token']}@github.com/{config['repository']['path']}.git", 'temp_repo')

    for root, dirs, files in os.walk('temp_repo'):
        if '.git' in dirs:
            dirs.remove('.git')

        for file in files:
            src_file = os.path.join(root, file)
            dest_file = os.path.relpath(src_file, 'temp_repo')
            shutil.copy(src_file, dest_file)

    shutil.rmtree('temp_repo')

    print("Repository cloned and files replaced successfully.")
    ```

Activity

  1. gitpython-developers
    locked and limited conversation to collaborators on Jan 12, 2024
  2. Byron
    converted this issue into a discussion #1801 on Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.