[FEAT]: Support Code Scanning default setup
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
- [X] I agree to follow this project's Code of Conduct
This has now been implemented in go-github here: https://github.com/google/go-github/pull/2808 and released in v53.2.0 🚀
I'd be happy to give this a shot @kfcampbell
@VariableExp0rt please go for it!
@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.
@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.
👋 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!