integrations / terraform-provider-github

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

[FEAT]: Manage github personal access tokens (PATs) with terraform #2364

Open nitrocode opened 3 weeks ago

nitrocode commented 3 weeks ago

Describe the need

I'd like to create and manage permissions of personal access tokens for a service account with terraform

In cloudflare, in a service user account, I issued a user-management token, and then use cloudflare_api_token to create other tokens and manage their permissions as well as allowed IPs that can use this token. After the token is created, I can save it in AWS SSM store.

We can do this in AWS and in cloudflare and I'd like to do this with github as well.

Thanks!

https://stackoverflow.com/questions/41879286/get-a-token-by-github-api

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

kfcampbell commented 2 weeks ago

That StackOverflow link is interesting. Is that API public? I can't seem to find docs about it, and I didn't think we supported such an API.