Manage GitHub org settings and org-role assignments via Pulumi#107
Merged
Manage GitHub org settings and org-role assignments via Pulumi#107
Conversation
Brings two click-ops org-level configs under IaC and tightens defaults: - OrganizationSettings: default_repository_permission read -> none so private repos are not implicitly readable by every member; repo creation restricted to admins; billingEmail from Pulumi secret; security new-repo defaults pinned so the provider does not reset them. - Org-role assignments: codify lead/core-maintainers -> all_repo_admin. moderators -> all_repo_triage and anthropic -> all_repo_write are intentionally omitted (being removed).
Pulumi PreviewClick to expand preview output |
The github: namespace is reserved for the @pulumi/github provider's own config keys, so github:billingEmail was rejected as an unknown provider option. Use the project default namespace instead. preview.yml uses the same --config flag pattern as the existing Discord secrets.
pja-ant
approved these changes
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings two click-ops org-level configs under IaC and tightens defaults.
Org settings (
src/config/orgSettings.ts, newgithub.OrganizationSettingsresource):default_repository_permission:read→none— private repos are no longer implicitly readable by every org member; access flows from org roles andrepoAccess.tstrue→falsebillingEmailis read from the newORG_BILLING_EMAILActions secret (already configured) so it isn't committed to this public repoOrg-role assignments (
src/config/orgRoles.ts, newgithub.OrganizationRoleTeamresources):lead-maintainersandcore-maintainers→all_repo_admin(status quo)moderators → all_repo_triageandanthropic → all_repo_writeare intentionally not codified — those grants are being removed separately