terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

[FEAT]: Support Code Scanning default setup

Open srgustafson8 opened this issue 2 years ago • 6 comments

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

srgustafson8 avatar Apr 13 '23 08:04 srgustafson8

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

srgustafson8 avatar Jun 19 '23 12:06 srgustafson8

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

VariableExp0rt avatar Nov 01 '23 13:11 VariableExp0rt

@VariableExp0rt please go for it!

kfcampbell avatar Nov 07 '23 00:11 kfcampbell

@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 avatar Nov 30 '23 09:11 VariableExp0rt

@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.

VariableExp0rt avatar Dec 01 '23 09:12 VariableExp0rt

👋 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!

github-actions[bot] avatar Aug 28 '24 01:08 github-actions[bot]