Skip to content

feat: Add github_actions_organization_self_hosted_runners resource#3338

Open
mrymam wants to merge 2 commits intointegrations:mainfrom
mrymam:feat/add-actions-organization-self-hosted-runners
Open

feat: Add github_actions_organization_self_hosted_runners resource#3338
mrymam wants to merge 2 commits intointegrations:mainfrom
mrymam:feat/add-actions-organization-self-hosted-runners

Conversation

@mrymam
Copy link
Copy Markdown

@mrymam mrymam commented Apr 15, 2026

Resolves #2601


Before the change?

  • There is no Terraform resource to manage which repositories are allowed to create repository-level self-hosted runners at the organization level. Users must configure this setting manually via the GitHub UI (Organization Settings > Actions > Runners).

After the change?

  • A new resource github_actions_organization_self_hosted_runners is added that manages the self-hosted runner creation policy using the GET/PUT /orgs/{org}/actions/permissions/self-hosted-runners API endpoints.
  • Supports enabled_repositories policy: all, selected, or none.
  • When set to selected, an enabled_repositories_config block allows specifying which repository IDs are permitted to create self-hosted runners.
  • Import is supported via terraform import github_actions_organization_self_hosted_runners.example org_name.
  • On resource deletion, the policy is reset to all (default permissive state).

Pull request checklist

  • Schema migrations have been created if needed (example)
  • 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

mrymam and others added 2 commits April 15, 2026 22:43
Add a new resource to manage self-hosted runner creation policies at the
organization level, controlling which repositories are allowed to create
repository-level self-hosted runners.

Resolves integrations#2601

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

@github-actions github-actions bot added the Type: Feature New feature or request label Apr 15, 2026
@mrymam mrymam marked this pull request as ready for review April 15, 2026 13:55
@deiga deiga modified the milestone: v6 Next Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: Add support for Choose which repositories are allowed to create repository-level self-hosted runners.

2 participants