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: implement missing data source github_actions_environment_public_key #2500

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

nobbs
Copy link

@nobbs nobbs commented Dec 5, 2024

Resolves #1769 (it was closed but never resolved)


Before the change?

  • there are multiple data source implementations to get the public key used for secrets encryption, e.g.
    • github_actions_public_key for a repository's public key
    • github_actions_organization_public_key for an organization's public key
  • there is no data source to get the public key of a specific environment of a repository (which might be used to encrypt values for the github_repository_environment_secret resource).

After the change?

  • implements the missing data source github_actions_environment_public_key
data "github_actions_environment_public_key" "test" {
  repository = "repo-name"
  environment = "env-name"
}

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@nobbs nobbs changed the title Feat/env public key feat: implement missing data source github_actions_environment_public_key Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT]: DataSource for github_actions_environment_public_key
1 participant