Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: github_user_email #2070

Open
1 task done
fishpen0 opened this issue Dec 20, 2023 · 0 comments · May be fixed by #2116
Open
1 task done

[FEAT]: github_user_email #2070

fishpen0 opened this issue Dec 20, 2023 · 0 comments · May be fixed by #2116
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request

Comments

@fishpen0
Copy link

fishpen0 commented Dec 20, 2023

Describe the need

We'd like a new resource github_user_email for adding and removing email addresses to the github user we use as a service account for CI/CD. Basically each environment and project has an email associated with a cloud provider service account. Those pipeline runs sign commits as that email address, so we'd like to be able to dynamically add and remove email addresses to the Github Bot user whever we are adding and removing GPG keys.

Example use with a generic cloud provider service account:

data "cloud_provider_service_account" "example" {
  name = "myenvironment@myproject.iam.mycloudprovider.com"
}

resource "github_user_gpg_key" "example" {
  armored_public_key = cloud_provider_service_account.example.public_key
}

resource "github_user_email" "example" {
  email_address = cloud_provider_service_account.example.name
}

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@fishpen0 fishpen0 added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Dec 20, 2023
@nickfloyd nickfloyd added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants