terraform-provider-github
terraform-provider-github copied to clipboard
feat: add data sources github_actions_remove_token and github_actions_organization_remove_token
Resolves #2696
Before the change?
- Data source
github_actions_remove_tokendidn't exist - Data Source
github_actions_organization_remove_tokendidn't exist - Test for
github_actions_registration_tokendoes not work, because for new repo creationvulnerability_alertsis automatically activated, which is not reflected in tests, leading to immediate drift
After the change?
- Data source
github_actions_remove_tokenlets you create a self-hosted runner remove token at the repository level - Data source
github_actions_organization_remove_tokenlets you create a self-hosted runner remove token at the organization level - Implemented tests for
github_actions_remove_tokenandgithub_actions_organization_remove_tokensimilar to tests forgithub_actions_registration_tokenandgithub_actions_organization_registration_token - Fixed test for
github_actions_registration_token, by registering of test repo with activated vulnerability alerts - Added documentation similar to
github_actions_registration_tokenandgithub_actions_organization_registration_token
Pull request checklist
- [x] Tests for the changes have been added (for bug fixes / features)
- [x] 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
- [x] No
Thanks for the submission @dankress! We'll be holding this PR for the next v7 release. We will release this one as an ephemeral resource.
Great to see my contribution being put to use, looking forward to the release!