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/validate-workflow.sh

View on GitHub
#!/bin/bash
# validate-workflow.sh - Validate GitHub Actions workflows for GCP security

set -euo pipefail

WORKFLOW_DIR="${1:-.github/workflows}"

echo "Validating GitHub Actions Workflows"
echo "Directory: $WORKFLOW_DIR"
echo ""

ISSUES=0

# Check for WIF usage
echo "Checking for Workload Identity Federation..."
if grep -r "workload_identity_provider" "$WORKFLOW_DIR" 2>/dev/null; then
    echo "✓ Using Workload Identity Federation"
else
    echo "✗ No WIF configuration found - use WIF instead of JSON keys"
    ((ISSUES++))
fi

# Check for JSON keys (security issue)
echo "Checking for JSON service account keys..."
if grep -r "credentials_json\|service-account.*json" "$WORKFLOW_DIR" 2>/dev/null; then
    echo "✗ JSON keys detected - migrate to Workload Identity Federation"
    ((ISSUES++))
else
    echo "✓ No JSON keys found"
fi

# Check for OIDC permissions
echo "Checking for id-token permissions..."
if grep -r "id-token.*write" "$WORKFLOW_DIR" 2>/dev/null; then
    echo "✓ OIDC permissions configured"
else
    echo "⚠ Missing 'id-token: write' permission"
    ((ISSUES++))
fi

# Check for security scans
echo "Checking for security scans..."
if grep -r "trufflehog\|trivy\|snyk" "$WORKFLOW_DIR" 2>/dev/null; then
    echo "✓ Security scanning configured"
else
    echo "⚠ No security scanning detected"
fi

echo ""
if (( ISSUES == 0 )); then
    echo "✓ Workflows are secure"
    exit 0
else
    echo "✗ Found $ISSUES security issues"
    exit 1
fi
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