🔥Let’s Do DevOps: Auto-Disable Inactive GitHub Copilot Licenses! 🚀

Kyler Middleton
7 min readApr 15, 2024

This blog series focuses on presenting complex DevOps projects as simple and approachable via plain language and lots of pictures. You can do it!

Hey all!

I’ve been diving head-first into generative AI wherever I can, and one place we’ve done that is to enable GitHub Copilot for a bunch of folks to test out. This is a proof of concept, where we have different folks from different backgrounds trying it out, and seeing if they like it, and if it’s useful.

Some folks love it (Including me)! Other folks never had time to test it. However, the licensing costs to enable their seat for CoPilot ($19/month!) continue getting billed regardless. Which is weird, because they never used it.

The data for who is active in CoPilot in our GitHub Org is available on the web portal, so it’s easy enough to go in there and deactivate any users who haven’t been active recently — but why do it by hand?

So I wrote an Action that can read all the users that have licenses installed in an Org, and then check when they were last active, and disable those that haven’t been active beyond a threshold (30 days by default).

If you want to just skip ahead to using it, scroll to the bottom of this page to find the Action in the

--

--

Kyler Middleton

DevNetSecOps, DevRel, cloud security chick. I will teach you, it’s unavoidable. She/Her 🏳️‍🌈🏳️‍🌈, INFJ-A, support the EFF!