https://pulumi.com logo
Title
t

tall-crowd-93084

11/17/2022, 11:05 AM
Hey Folks, I'd like to use pulumi github to fork a repo in an organisation. It's not immediately obvious how to do that: I want
org/repo-template
forked to
org/{name}-repo
where
name
parameterizes a load of other infra that's set up (one per customer). Questions: • Can I specify where to fork from when creating a
github.Repository
or do I need to use a template • What kind of access token do I need? • How do I specify which organisation to create the repo in?
So what I ended up doing: Manually fork the repo (could have used a template instead) Create a Private Key with the TLS module Create a deploy key from the public key Write the private key locally Sync everything up and checkout the repo with ansible