Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/devops/jeremy-github-actions-gcp/skills/gh-actions-validator

gh-actions-validator

Verified

Validate 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.

FileKindSize
SKILL.mdskill md2.8 KB
references/ARD.mdmarkdown4.9 KB
references/PRD.mdmarkdown3.9 KB
references/errors.mdmarkdown931 B
references/examples.mdmarkdown484 B
scripts/setup-wif.shexecutablescript2.1 KB
scripts/validate-workflow.shexecutablescript1.5 KB

scripts/setup-wif.sh

View on GitHub
#!/bin/bash
# setup-wif.sh - Setup Workload Identity Federation for GitHub Actions

set -euo pipefail

PROJECT_ID="${1:-}"
REPO_OWNER="${2:-}"
REPO_NAME="${3:-}"

if [[ -z "$PROJECT_ID" ]] || [[ -z "$REPO_OWNER" ]] || [[ -z "$REPO_NAME" ]]; then
    cat <<EOF
Usage: $0 <PROJECT_ID> <REPO_OWNER> <REPO_NAME>

Setup Workload Identity Federation for GitHub Actions GCP authentication.

Example:
    $0 my-project jeremylongshore my-repo

EOF
    exit 1
fi

echo "Setting up Workload Identity Federation"
echo "Project: $PROJECT_ID"
echo "Repository: $REPO_OWNER/$REPO_NAME"
echo ""

# Create workload identity pool
echo "Creating workload identity pool..."
gcloud iam workload-identity-pools create "github-pool" \
    --project="$PROJECT_ID" \
    --location="global" \
    --display-name="GitHub Actions Pool" || echo "Pool may already exist"

# Create OIDC provider
echo "Creating OIDC provider..."
gcloud iam workload-identity-pools providers create-oidc "github-provider" \
    --project="$PROJECT_ID" \
    --location="global" \
    --workload-identity-pool="github-pool" \
    --issuer-uri="https://token.actions.githubusercontent.com" \
    --attribute-mapping="google.subject=assertion.sub,attribute.repository=assertion.repository" \
    --attribute-condition="assertion.repository=='$REPO_OWNER/$REPO_NAME'" || echo "Provider may already exist"

# Get WIF provider name
WIF_PROVIDER="projects/$(gcloud projects describe "$PROJECT_ID" --format='value(projectNumber)')/locations/global/workloadIdentityPools/github-pool/providers/github-provider"

echo ""
echo "✓ Workload Identity Federation configured"
echo ""
echo "Add these secrets to your GitHub repository:"
echo "  WIF_PROVIDER: $WIF_PROVIDER"
echo "  GCP_PROJECT_ID: $PROJECT_ID"
echo ""
echo "Create a service account and grant it access:"
echo "  gcloud iam service-accounts create github-actions --project=$PROJECT_ID"
echo "  gcloud iam service-accounts add-iam-policy-binding github-actions@$PROJECT_ID.iam.gserviceaccount.com \\"
echo "    --role=roles/iam.workloadIdentityUser \\"
echo "    --member=\"principalSet://iam.googleapis.com/$WIF_PROVIDER/attribute.repository/$REPO_OWNER/$REPO_NAME\""
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 196kUpdated Claude CodeCodexVerifiedInstall