integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
888 stars 731 forks source link

[FEAT]: Support Code Scanning default setup #1648

Closed srgustafson8 closed 2 weeks ago

srgustafson8 commented 1 year ago

Describe the need

We manage our whole GitHub organisation programatically, including the creation of repositories. We are also a GHAS customer, and want to use it to it's maximum. Getting all teams across 500+ repositories to enable Code Scanning is a headache, so being able to automatically enable the default scanning programatically for a repository would be helpful.

There is now an API for this so it can be Terraformed.

Depends on https://github.com/google/go-github/issues/2751 for the go-github SDK to support it.

SDK Version

No response

API Version

2022-11-28

Relevant log output

No response

Code of Conduct

srgustafson8 commented 1 year ago

This has now been implemented in go-github here: https://github.com/google/go-github/pull/2808 and released in v53.2.0 🚀

VariableExp0rt commented 10 months ago

I'd be happy to give this a shot @kfcampbell

kfcampbell commented 10 months ago

@VariableExp0rt please go for it!

VariableExp0rt commented 9 months ago

@kfcampbell apologies I haven't been able to get to this over the last few weeks, but should now have some time to take a crack at it.

VariableExp0rt commented 9 months ago

@kfcampbell I've given this a first pass, but would appreciate a couple of pointers on the test setup, I followed the guide in CONTRIBUTING.md but am struggling to get those to run successfully under the individual and organization test cases.

github-actions[bot] commented 3 weeks ago

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!