https://pulumi.com logo
#general
Title
# general
m

microscopic-ram-86765

11/17/2021, 9:58 PM
Question about the
github
provider. I may be missing something obvious here, but there doesn't seem to be a way to set a
RepositoryEnvironment
to only allow a branch like you can via the UI (screenshot attached). There's an option to create a policy, but the policy is only a
boolean
to turn it on or off with no way to specify the actual branch policy. https://www.pulumi.com/registry/packages/github/api-docs/repositoryenvironment/#custombranchpolicies_nodejs
customBranchPolicies This property is required.
boolean
Whether only branches that match the specified name patterns can deploy to this environment.
l

little-cartoon-10569

11/17/2021, 10:06 PM
I think the protections are set up elsewhere (see the BranchProtection resource). These booleans determine if the protections apply to the environment.