gh-actions-validator

Use when validating GitHub Actions workflows for Google Cloud and Vertex AI deployments. Trigger with phrases like "validate github actions", "setup workload identity federation", "github actions security", "deploy agent with ci/cd", or "automate vertex ai deployment". Enforces Workload Identity Federation (WIF), validates OIDC permissions, ensures least privilege IAM, and implements security best practices.

⭐878stars🔀101forks📁View on GitHub🕐Updated Jan 4, 2026⬇️4downloads

When & Why to Use This Skill

This Claude skill automates the validation and hardening of GitHub Actions workflows specifically for Google Cloud and Vertex AI deployments. It enhances security by enforcing Workload Identity Federation (WIF) and OIDC authentication, ensuring least-privilege IAM roles and eliminating the risks associated with long-lived service account keys.

Use Cases

  • 1. Security Auditing: Scan existing .github/workflows/ directories to identify insecure practices and replace hardcoded JSON service account keys with secure OIDC-based authentication.
  • 2. Secure Vertex AI Deployment: Automate the setup and validation of CI/CD pipelines for deploying AI agents and models to Vertex AI, ensuring all deployment steps follow Google Cloud security best practices.
  • 3. IAM Policy Enforcement: Validate and implement least-privilege IAM permissions for GitHub Actions, preventing 'Owner' or 'Editor' role over-permissioning and reducing the attack surface of cloud environments.
namegh-actions-validator
description|
allowed-toolsRead, Write, Edit, Grep, Glob, Bash(git:*), Bash(gcloud:*)
version1.0.0
authorJeremy Longshore <jeremy@intentsolutions.io>
licenseMIT

Gh Actions Validator

Overview

Validate and harden GitHub Actions workflows that deploy to Google Cloud (especially Vertex AI) using Workload Identity Federation (OIDC) instead of long-lived service account keys. Use this to audit existing workflows, propose a secure replacement, and add CI checks that prevent common credential and permission mistakes.

Prerequisites

Before using this skill, ensure:

  • GitHub repository with Actions enabled
  • Google Cloud project with billing enabled
  • gcloud CLI authenticated with admin permissions
  • Understanding of Workload Identity Federation concepts
  • GitHub repository secrets configured
  • Appropriate IAM roles for CI/CD automation

Instructions

  1. Audit Existing Workflows: Scan .github/workflows/ for security issues
  2. Validate WIF Usage: Ensure no JSON service account keys are used
  3. Check OIDC Permissions: Verify id-token: write is present
  4. Review IAM Roles: Confirm least privilege (no owner/editor roles)
  5. Add Security Scans: Include secret detection and vulnerability scanning
  6. Validate Deployments: Add post-deployment health checks
  7. Configure Monitoring: Set up alerts for deployment failures
  8. Document WIF Setup: Provide one-time WIF configuration commands

Output

  - uses: actions/checkout@v4
  - name: Authenticate to GCP (WIF)
  - name: Deploy to Vertex AI
        --project=${{ secrets.GCP_PROJECT_ID }} \
        --region=us-central1
  - name: Validate Deployment

Error Handling

See {baseDir}/references/errors.md for comprehensive error handling.

Examples

See {baseDir}/references/examples.md for detailed examples.

Resources