GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing computingforgeeks.com — Set Up Claude Code in GitHub Actions for Infra Review [Tested] Claude Code has an official GitHub Action that reviews pull requests automatically. Most guides show it reviewing application code. This one uses it for infrastructure: Terraform configs, Ansible playbooks, Kubernetes manifests. When someone opens a PR that changes a security group or adds a database server, Claude Code reviews the diff, flags security issues, checks for missing tags, and posts its findings as a PR comment. Original content from computingforgeeks.com - post 164950This guide is the final spoke in the Claude Code for DevOps Engineers series. Everything below was tested on a real GitHub repository ( Tested March 2026 | anthropics/claude-code-action@v1, GitHub Actions, Sonnet 4.6, Terraform files What You Need
Install the Claude GitHub AppThe ![]() Select Only select repositories and pick the repo you want Claude to review. This limits Claude’s access to just the repositories you choose, not your entire account: ![]() The app requests read access to actions and metadata, plus read/write access to code, discussions, issues, PRs, and workflows. Click Install & Authorize to complete the setup. Set Up the WorkflowCreate
Three things to note about this configuration:
Store the API key as a secretAdd your Anthropic API key as a repository secret. Using the gh CLI:
Paste the key when prompted. The secret is encrypted and only available to workflow runs. Trigger a Review on a Real PRWe tested this by creating a PR that adds a database server to a staging VPC. The Terraform file has deliberate security issues: PostgreSQL port 5432 open to
When the PR is opened, the Claude Code Review workflow triggers automatically: ![]() The action runs Claude Code with Sonnet 4.6, which reads the PR diff, analyzes the Terraform changes, and reviews against the prompt criteria. In our test, the review completed in 29 seconds at a cost of $0.13. On-Demand Reviews with @claudeThe
The action triggers within seconds. In our testing, the on-demand review ran for 6 turns (Claude read the diff, checked the CLAUDE.md rules, analyzed the security groups, and prepared its review) and completed in under 30 seconds. Customize the Review with CLAUDE.mdThe action reads your repository’s
This turns Claude from a generic code reviewer into an infrastructure-aware reviewer that knows your team’s tagging policy, security requirements, and naming conventions. The .claude directory guide covers the full configuration system. What the Action CatchesBased on our testing with deliberately insecure Terraform configurations, Claude Code consistently flags:
Gotchas We Hit During SetupThree issues that burned real time during our testing. Save yourself the debugging.
The Claude GitHub App must be installed. The action uses OIDC to exchange tokens with the Claude GitHub App. If the app isn’t installed on your repository, you get Use Cost and PerformanceFrom our test runs reviewing a ~60-line Terraform file addition:
At $0.13 per review, a team pushing 20 PRs per day spends about $2.60/day on automated infrastructure review. That’s significantly cheaper than a human reviewer’s time for catching obvious security and compliance issues. Headless Mode for Custom PipelinesIf the GitHub Action doesn’t fit your workflow, Claude Code’s
This works in any CI system: GitLab CI, Jenkins, CircleCI, Buildkite. Set For reviewing changed files without a full plan:
The Claude Code cheat sheet covers all headless mode flags and output formats. The Complete SeriesThis is the final spoke in the Claude Code for DevOps series. Each article covers a different infrastructure tool with real demos on real systems:
Josphat Mutai
Founder of Computingforgeeks. Senior Systems Engineer with over a decade of hands-on experience building and managing production infrastructure. Core expertise in Linux/UNIX administration, cloud platforms (AWS, GCP, Azure), and Kubernetes ecosystems (EKS, GKE, OpenShift). Deep experience with virtualization (KVM, Proxmox, OpenStack), infrastructure as code (Terraform, Terragrunt, Ansible, Crossplane), GitOps workflows (ArgoCD, FluxCD), Nix/NixOS, and container orchestration at scale. Currently focused on integrating AI and LLMs into DevOps and platform engineering workflows. Every guide on this site is tested on real systems before publishing. Keep reading
AI
Ollama Models Cheat Sheet: Best Models by VRAM, Tested (PDF)
AI
Open Source LLM Comparison Table (2026)
AI
Claude Code Cheat Sheet: Commands, Shortcuts and Flags (PDF)
AI
Self-Host LibreChat with Ollama, LiteLLM and SearXNG Web Search
AI
OpenClaw Security Hardening with Ollama: Sandbox, Tools, Skills
AI
Install claude-mem for Claude Code: Persistent Memory, Tested
Leave a Comment Cancel reply
| ||||||||||||||||||||||||
| You are visitor 01402503 — 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. |