GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Combine member updates and guarded deletes by galargh · Pull Request #265 · ipdxco/github-as-code

Conversation

@galargh

@galargh galargh commented Aug 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

Combines the work from:

  • Add member update workflow #263: Add member update workflow
  • Guard repository and membership deletes #264: Guard repository and membership deletes

Includes these follow-up improvements:

  • Keep Fix PR comments focused on access changes, with overflow protection and a link to the full access report in workflow summaries/artifacts.
  • Generate the full report as a side effect of the shared describe-access-changes helper; restore the manual Access Report workflow and fix its metadata initialization.
  • Explain direct and team repository grants, identify members with no effective repository access, and label full reports as the expected post-apply configuration.
  • Isolate Fix config artifacts from access-report artifacts during the Push job.
  • Show Plan/Apply source commits, PRs, rendered plans, and artifacts, and explain allow-destroy routing before requesting protected environments.
  • Require ALLOW_DESTROY=true before enabling destructive plans/applies; reject member removals that retain team membership or direct private repository access in both Plan and Apply.
  • Only after those checks pass, warn on Plan and block Apply when removing organization membership while retaining direct public repository access. Publish recovery instructions in classification summaries and Plan comments.
  • Add a temporary manual workflow to convert a batch of active members to outside collaborators through the GitHub API, using a copyable username list from the Plan warning. It requires the guarded write-allow-destroy environment and Members write permission, and does not run Terraform, Sync, or create a PR. It validates all memberships before conversion and reports partial failures.
  • Explain conversion -> Sync -> updated PR -> fresh Plan recovery, including the risk that Sync overwrites merged but unapplied desired changes. Document removal of the workaround after provider #3608 is released, adopted, and membership state is migrated.
  • Use the configured GitHub App for Update Members commits/PRs, resolve the actual bot user ID for commit attribution, and support a draft run that only reports proposed changes.
  • Update changelog, setup documentation, and regression tests, including the access changes action upgrade requirement to avoid nested details rendering.

Provider Compatibility

This does not enable downgrade_to from integrations/terraform-provider-github#3608. The current provider does not preserve retained repository access when deleting organization membership. The manual conversion workflow and Apply guard provide an interim solution without a custom provider build.

Validation

  • pnpm --dir scripts install --frozen-lockfile
  • pnpm --dir scripts test: 79 passing tests
  • pnpm --dir scripts run build
  • pnpm --dir scripts run lint
  • pnpm --dir scripts run format
  • git diff --check
  • Compiled access-report helper generates a report in a fresh Node process using local fixtures.
  • Workflow shell tests cover bot attribution, the conversion guard, active versus pending membership, and conversion API failure without issuing live API mutations.

Before merge, a controlled live conversion -> Sync -> fresh Plan smoke test is recommended to verify the target organization's App permissions and enterprise policies. No live conversion was performed for this update.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
galargh added 15 commits July 16, 2026 14:11
@galargh
Add inactive member workflows
9e7a946
@galargh
Refine member update workflow
e32fa78
@galargh
Guard repo and membership deletes
8e36bb9
@galargh
Make org membership updates configurable
34f200f
@galargh
Merge remote-tracking branch 'origin/pr/263' into galargh/combine-pr-…
52cadec
…263-264
@galargh
Merge remote-tracking branch 'origin/pr/264' into galargh/combine-pr-…
d9a2a87
…263-264
@galargh
Refine access change reporting and guards
674f2b8
@galargh
Fix access change comments
34be3af
@galargh
Restore access comment details
7886c8b
@galargh
Move access report side effect to shared action
1598fbf
@galargh
Filter fix workflow config artifacts
beb7c27
@galargh
Surface plan and apply summaries
3fe55d3
@galargh
Explain allow-destroy classifications
24b2716
@galargh
Restore manual access report workflow
55105e6
@galargh
Use app token for update member PRs
018413b
@galargh
galargh force-pushed the galargh/combine-pr-263-264 branch from 33f67ae to f439e18 Compare November 22, 2026 12:02
@galargh
Guard member conversions with temporary API workflow
8618920
@galargh
galargh force-pushed the galargh/combine-pr-263-264 branch from f439e18 to 8618920 Compare November 22, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@galargh
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.