Hi All,
I hope you’re doing well. I’m currently syncing from repoA to repoB using Copybara and have hit a bit of a snag with authenticating a GitHub app, which is the only entity with write access to repoB. Here’s the Docker command I’m using:
docker_cmd = [
"docker", "run", "-v", "~/.ssh:/root/.ssh",
"-v", "~/mongodb-bot.gitconfig:/root/.gitconfig",
"-v", f"{current_dir}/copybara.sky:/usr/src/app/copy.bara.sky",
"-e", "COPYBARA_CONFIG=copy.bara.sky",
"-e", "COPYBARA_SUBCOMMAND=migrate",
"-e", "COPYBARA_OPTIONS=-v",
"-e", f"GITHUB_TOKEN={access_token_copybara_syncer}",
"copybara", "copybara"
]
I’m using GITHUB_TOKEN for authentication, but I’m not sure if this is the right way to go about it. Do you have any advice or suggestions?
Thanks
Juan