migrate-pat-secrets-to-terraform
OfficialMigrate PAT secrets to Terraform-managed secrets
Authoredri2or
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Replaces a repository's PyNaCl + classic PAT runtime secret-writing with Terraform github_actions_secret resources fed by an App-token-via-WIF chain. This enables retirement of legacy tokens and safer secret management.
Core Features & Use Cases
- Detects workflows that write runtime secrets using PyNaCl or REST PUT with a PAT, and flags targets for migration.
- Maps runtime secrets to Terraform references and rewrites workflows to use an App-token via WIF, preserving access controls.
- Emits Terraform configurations for github_actions_secret resources and ensures the necessary app-token integration steps.
- Rewrites the target workflow to adopt the App-token chain while preserving the initial authentication steps.
- Adds an audit-closure ADR documenting the migration decisions and consequences.
Quick Start
Run the migration on a target repository to replace PyNaCl + REST PUT PAT-based secret writing with Terraform-based github_actions_secret resources.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: migrate-pat-secrets-to-terraform Download link: https://github.com/edri2or/ripo-skills-main/archive/main.zip#migrate-pat-secrets-to-terraform Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.