Skip to content

Overriding credentials in Github Actions #1558

Description

@jbnjohnathan

I am troubleshooting an application (https://github.com/python-semantic-release/python-semantic-release) that uses gitpython, and trying to figure out if the issue is in gitpython or elsewhere.

When running this application as a GitHub action the workflow is very simple

  1. Use actions/checkout to checkout a branch from a repository
  2. Run the github action docker container against the folder where the repository was checked out to.

It uses the methods git.push(server, branch) where server is in the form of f"https://{user}:{token}@{domain}/{owner}/{name}.git"
But I have noticed that gitpython seem to cntinue to use the credentials that were supplied when the actions/checkout action run.

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