Skip to content

Instantly share code, notes, and snippets.

View Richard-Barrett's full-sized avatar
🏠
Working from home

Richard Barrett Richard-Barrett

🏠
Working from home
View GitHub Profile
@Richard-Barrett
Richard-Barrett / terraform_tag_prs.py
Created September 16, 2026 03:44
Terraform Tags Parser Script
#!/usr/bin/env python3
"""
Scan all repositories in one or more GitHub organizations for Terraform files.
If --old-string-map is found inside a Terraform `tags = { ... }` map or a
`tags = merge(...)` / `tags = tomap(...)` expression, replace it with
--new-string-map. With --add-tags-found-missing, add --new-string-map to literal
tag maps where that target tag is absent. Create one commit on a new branch and
open one pull request per affected repository.
Requires: requests
@Richard-Barrett
Richard-Barrett / GHES_MFA_SSH_CA_Enterprise_Implementation.md
Created September 14, 2026 23:00
GHES MFA, SSH Certificate Authority, and Credential Hardening Runbook

Cadence GHES MFA, SSH Certificate Authority, and Credential Hardening Runbook

Environment: Cadence Design Systems
GHES hostname: github.cadence.com
Target GHES baseline: 3.18.x
Identity provider: Okta
Privileged access / machine identity: CyberArk
Purpose: Establish an enterprise authentication architecture that enforces strong MFA for humans, replaces long-lived developer SSH authentication with short-lived SSH certificates, limits personal access token exposure, and separates human from machine authentication.


@Richard-Barrett
Richard-Barrett / GHES-3.10.17-to-3.18.13-DevOps-Engineering-Checklist.md
Created August 29, 2026 16:00
GHES 3.10.17 → 3.18.13 - DevOps / Engineering Technical Breaking-Changes Checklist

GHES 3.10.17 → 3.18.13

DevOps / Engineering Technical Breaking-Changes Checklist

Use this checklist to validate application, CI/CD, repository, security, authentication, API, and infrastructure compatibility after upgrading GitHub Enterprise Server from 3.10.17 to 3.18.13.


1. GitHub Actions

Runner Compatibility

@Richard-Barrett
Richard-Barrett / GHES-3.10.17-to-3.18.13-Executive-Summary.md
Created August 29, 2026 15:59
GHES Modernization Executive Summary

GHES Modernization Executive Summary

Upgrade from 3.10.17 to 3.18.13

Overview

GitHub Enterprise Server is being modernized from GHES 3.10.17 to GHES 3.18.13 using the supported feature-upgrade path:

3.10.17 → 3.12.17 → 3.14.16 → 3.16.20 → 3.18.13
@Richard-Barrett
Richard-Barrett / GHES-3.10.17-to-3.18.13-Changes-and-Breaking-Features.md
Created August 29, 2026 15:58
GitHub Enterprise Server 3.10.17 → 3.18.13

GitHub Enterprise Server 3.10.17 → 3.18.13

Major Changes, Breaking Changes, Deprecations, and Upgrade Considerations

Executive Summary

This document summarizes the major platform changes, compatibility impacts, retired functionality, breaking behavior, and operational considerations involved in moving GitHub Enterprise Server (GHES) from 3.10.17 to 3.18.13.

The supported upgrade path used for this modernization effort is:

GHES 3.8.17 Root A/B Partition Expansion Runbook

Purpose

This runbook expands the GHES root A/B partitions on a VMware-backed GHES 3.8.17 appliance.

This procedure applies when:

  • The VMware root VMDK has already been expanded.
@Richard-Barrett
Richard-Barrett / ghes-vs-github-emu-pros-cons.md
Created August 19, 2026 21:48
GitHub Enterprise Server v. GitHub EMU
@Richard-Barrett
Richard-Barrett / syslog-ng.conf
Created August 19, 2026 15:08
GHES /etc/logrotate.d/syslog-ng
/var/log/syslog
/var/log/haproxy.log
/var/log/github-audit.log
{
rotate 7
daily
missingok
maxsize 1G
notifempty
delaycompress
@Richard-Barrett
Richard-Barrett / github.conf
Created August 19, 2026 15:08
GHES /etc/logrotate.d/github
/var/log/github/exceptions.log
{
rotate 7
daily
missingok
maxsize 1G
delaycompress
compress
notifempty
copytruncate
@Richard-Barrett
Richard-Barrett / ghes_identity_audit.py
Last active August 18, 2026 20:54
GHES Identity Audit
#!/usr/bin/env python3
"""
GHES Identity Audit
Analyzes GitHub Enterprise Server audit logs to identify:
- Users accessing public repositories
- Unlicensed users accessing public repositories
- GHES activity from AD-disabled users (optional)