FociSolutions / github-foundations-modules

A collection of terraform modules used in the Github Foundations framework.
MIT License
1 stars 0 forks source link

[Bug] Can't enable advanced security on public repos #36

Open bzarboni1 opened 5 months ago

bzarboni1 commented 5 months ago

ISSUE

While attempting to set the "Advanced Security" to enabled for a public repo, it was noticed that this is explicitly denied in code. The assumption stated is that public repos have already been set to have Advanced Security, but this is not the case when the Terraform had run.


bzarboni1 commented 5 months ago

After getting the provider fixed, we tried to apply this setting, and the GH API returns a 422 Error. The setting can't be applied on Public repos, even though it appears that some of the Advanced Security settings are not enabled.