Skip to content

Prompted for Username and Password on every Git Clone while using Docker #4

@Sorsnce

Description

@Sorsnce

While running this in Docker

docker run -ti --rm -e GITHUB_WATCHER_TOKEN=your_access_token duolabs/secret-bridge poll

I get prompted every time GitHub does a "pull"

INFO:root:Cloning repository ORG/REPO into /tmp/tmpglfe5wn9repo
Username for 'https://github.com': 

It appears that processor.py is not passing the GitHub token from the config.toml
See on line 35 in processor.py

subprocess.run(["git", "clone", repo_url, repo_dir.name], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

Looks like you just need to pass the variable to subprocess.run to fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions