terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

feat: add data sources github_actions_remove_token and github_actions_organization_remove_token

Open dankress opened this issue 6 months ago • 2 comments

Resolves #2696


Before the change?

  • Data source github_actions_remove_token didn't exist
  • Data Source github_actions_organization_remove_token didn't exist
  • Test for github_actions_registration_token does not work, because for new repo creation vulnerability_alerts is automatically activated, which is not reflected in tests, leading to immediate drift

After the change?

  • Data source github_actions_remove_token lets you create a self-hosted runner remove token at the repository level
  • Data source github_actions_organization_remove_token lets you create a self-hosted runner remove token at the organization level
  • Implemented tests for github_actions_remove_token and github_actions_organization_remove_token similar to tests for github_actions_registration_token and github_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_token and github_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

dankress avatar Jul 16 '25 09:07 dankress

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.

diofeher avatar Dec 02 '25 19:12 diofeher

Great to see my contribution being put to use, looking forward to the release!

dankress avatar Dec 12 '25 17:12 dankress