IT OPS

Offboarding GitHub Access Revoke and Audit Trail

On an offboarding ticket, remove the leaver from all GitHub orgs, teams, and repos, then write an immutable audit record of exactly what access was revoked and when.

CategoryIT Ops
Enginesim
Difficultyintermediate
Triggerevent
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerLinear offboarding issue moves to Revoke AccessLinearLinear
  • ActionEnumerate GitHub org, team, and repo access for handleGitHubGitHub
  • LogicSnapshot current access as before-state
  • ActionRemove all memberships, grants, and pending invitesGitHubGitHub
  • ActionWrite before/after diff to Postgres audit tablePostgreSQLPostgres
  • OutputComment revocation summary on the Linear issueLinearLinear

What it does

Focuses the offboarding sweep on source-control risk. It removes a departing engineer from every GitHub org, team, and repository they belonged to, captures the before/after state, and stores a tamper-evident audit row so security can later prove access was cut.

When to use it

Use it for any engineer or contractor leaving, especially when compliance requires documented proof that code and CI access was removed on the termination date.

How it works

  1. 1A Linear offboarding issue moving to "Revoke Access" triggers the run with the leaver's GitHub handle.
  2. 2The flow enumerates the user's current org memberships, team seats, and repo collaborator grants via the GitHub API.
  3. 3A logic step snapshots that access list as the "before" state.
  4. 4Each membership and collaborator grant is removed, and pending invitations are cancelled.
  5. 5The before/after diff is written to a Postgres audit table with a timestamp and the triggering ticket ID.
  6. 6A confirmation comment is posted back on the Linear issue summarizing what was revoked.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect LinearIssues, projects, cycles, triage.
  2. 2
    Connect GitHubRepos, issues, pull requests, actions.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.