---
title: "Staying Evergreen: How we automated secure access and repo hygiene in a shared org"
description: "Evergreen is a Go-based GitHub App that automates quarterly outside-collaborator access reviews and stale-repo archival in a shared org of 1,400+ GitHub employees, customers and partners, built entirely from native primitives: scheduled Actions firing repository_dispatch, webhooks, issue checklists, custom properties, and per-repo JSON state files in git that double as the audit trail."
url: "https://swe.quest/articles/staying-evergreen-how-we-automated-secure-access-and-repo-hygiene-in-a-shared-b76aa86640c047a2"
canonical: "https://github.blog/engineering/platform-security/staying-evergreen-how-we-automated-secure-access-and-repo-hygiene-in-a-shared-org/"
source: "GitHub Engineering"
published: "2026-10-15"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["identity-auth","developer-tools","security","system-design"]
---

# Staying Evergreen: How we automated secure access and repo hygiene in a shared org

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2026-10-15, 8 min read, Case study. Original: [https://github.blog/engineering/platform-security/staying-evergreen-how-we-automated-secure-access-and-repo-hygiene-in-a-shared-org/](https://github.blog/engineering/platform-security/staying-evergreen-how-we-automated-secure-access-and-repo-hygiene-in-a-shared-org/)

## Summary

Evergreen is a Go-based GitHub App that automates quarterly outside-collaborator access reviews and stale-repo archival in a shared org of 1,400+ GitHub employees, customers and partners, built entirely from native primitives: scheduled Actions firing repository\_dispatch, webhooks, issue checklists, custom properties, and per-repo JSON state files in git that double as the audit trail. It fails secure by revoking all access when a review goes unanswered, fails closed by keeping reviews pending until every removal succeeds, and never deletes anything. Rollout relied on a DRY\_RUN mode, logfmt logs in Splunk, and proactive pacing to stay under GitHub's secondary content-creation rate limits of 80 requests/minute and 500/hour.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Security](https://swe.quest/tags/security.md) (Security)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- GitHub Apps and webhooks
- GitHub Actions workflows ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

Evergreen, GitHub Apps, GitHub Actions, IssueOps, Splunk, custom properties

## Related posts

- [Automatically Rotating GitHub Tokens (So You Don’t Have To)](https://swe.quest/articles/automatically-rotating-github-tokens-so-you-don-t-have-to-45a6ed60a4bb7896.md): Shopify Engineering · 2022-12-20 · Medium · 11 min read · Identity & auth, CI/CD, Security, Developer tools
  Shopify replaced long-lived GitHub personal access tokens with short-lived GitHub App installation tokens that are rotated automatically by scheduled GitHub Actions workflows and written into repository secrets.
- [Better security for your app's secrets](https://swe.quest/articles/better-security-for-your-app-s-secrets-1add70314c176532.md): incident.io · 2023-07-10 · Medium · 9 min read · Security, Cloud platforms, Configuration management, Identity & auth, Go
  incident.io's Go app loads config from per-environment YAML files, overrides values with environment variables, then resolves \`secret-manager:\` references from Google Secret Manager at boot.
- [Security Disclosure Recommendation: Check for Anomalous GitHub Access](https://swe.quest/articles/security-disclosure-recommendation-check-for-anomalous-github-access-acf8b4a01ac2abcd.md): Railway · 2026-10-22 · Medium · 1 min read · Identity & auth, Incidents & postmortems, Security
  Railway users who connect GitHub, following the October 21, 2026 security disclosure, should audit their GitHub accounts for persistence an attacker may have left behind, then confirm no unexpected commits reached their deployments.
- [Using GitHub Actions with Heroku Flow for additional Security Control](https://swe.quest/articles/using-github-actions-with-heroku-flow-for-additional-security-control-fea72ed977a6f5e4.md): Heroku Engineering · 2025-03-27 · Medium · 7 min read · CI/CD, Deployment, Security, Cloud platforms
  Because GitHub Orgs can't allowlist Heroku IP ranges, Heroku offers a sample pattern: a self-hosted GitHub Actions runner deployed as a Docker app in a Heroku Private Space with static outbound IPs, plus a Heroku Flow Action.
- [Open source security at Astral](https://swe.quest/articles/open-source-security-at-astral-4e24d0de3a4c872a.md): Astral · 2026-04-08 · Medium · 14 min read · Supply chain security, CI/CD, Security, Open source
  Astral secures Ruff, uv and ty against supply chain attacks with layered controls across CI/CD, repository settings, releases and dependencies.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
