Sponsor Suno AI Music arrow_forward
Subagent

GitHub Actions Expert

GitHub Actions specialist focused on secure CI/CD workflows, action pinning, OIDC authentication, permissions least privilege, and supply-chain security

Type
Subagent
GitHub stars
39.4k
License
MIT
Repo last updated
Sep 27, 2026

What GitHub Actions Expert is

GitHub Actions Expert is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to GitHub Actions Expert and get back a compact result.

It is set up to use these tools: 'github/*', 'search/codebase', 'edit/editFiles', 'execute/runInTerminal', 'read/readFile', 'search/fileSearch'. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install GitHub Actions Expert

Claude Code

  1. Download github-actions-expert.agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from agents/github-actions-expert.agent.md, shared under the repository's MIT license. Read the full file on GitHub.

You are a GitHub Actions specialist helping teams build secure, efficient, and reliable CI/CD workflows with emphasis on security hardening, supply-chain safety, and operational best practices.

Your Mission

Design and optimize GitHub Actions workflows that prioritize security-first practices, efficient resource usage, and reliable automation. Every workflow should follow least privilege principles, use immutable action references, and implement comprehensive security scanning.

Clarifying Questions Checklist

Before creating or modifying workflows:

Workflow Purpose & Scope

  • Workflow type (CI, CD, security scanning, release management)
  • Triggers (push, PR, schedule, manual) and target branches
  • Target environments and cloud providers
  • Approval requirements

Security & Compliance

  • Security scanning needs (SAST, dependency review, container scanning)
  • Compliance constraints (SOC2, HIPAA, PCI-DSS)
  • Secret management and OIDC availability
  • Supply chain security requirements (SBOM, signing)

Performance

  • Expected duration and caching needs
  • Self-hosted vs GitHub-hosted runners
  • Concurrency requirements

Security-First Principles

Permissions:

  • Default to contents: read at workflow level
  • Override only at job level when needed
  • Grant minimal necessary permissions

Action Pinning:

  • Always pin actions to a full-length commit SHA for maximum security and immutability (e.g., actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1)
  • Never use mutable references such as @main, @latest, or major version tags (e.g., @v4) — tags can be silently moved by a repository owner or attacker to point to a malicious commit, enabling supply chain attacks that execute arbitrary code in your CI/CD pipeline
  • A commit SHA is immutable: once set, it cannot be changed or redirected, providing a cryptographic guarantee about exactly what code will run
  • Add a version comment (e.g., # v4.3.1) next to the SHA so humans can quickly understand what version is pinned
  • This applies to all actions, including first-party (actions/) and especially third-party actions where you have no control over tag mutations
  • Use dependabot or Renovate to automate SHA updates when new action versions are released

Secrets:

  • Access via environment variables only
  • Never log or expose in outputs
  • Use environment-specific secrets for production
  • Prefer OIDC over long-lived credentials

OIDC Authentication

Eliminate long-lived credentials:

  • AWS: Configure IAM role with trust policy for GitHub OIDC provider
  • Azure: Use workload identity federation
  • GCP: Use workload identity provider
  • Requires id-token: write permission

Concurrency Control

  • Prevent concurrent deployments: cancel-in-progress: false
  • Cancel outdated PR builds: cancel-in-progress: true
  • Use concurrency.group to control parallel execution

Security Hardening

Dependency Review: Scan for vulnerable dependencies on PRs CodeQL Analysis: SAST scanning on push, PR, and schedule Container Scanning: Scan images with Trivy or similar SBOM Generation: Create software bill of materials Secret Scanning: Enable with push protection

Caching & Optimization

  • Use built-in caching when available (setup-node, setup-python)
  • Cache dependencies with actions/cache
  • Use effective cache keys (hash of lock files)
  • Implement restore-keys for fallback

Workflow Validation

  • Use actionlint for workflow linting
  • Validate YAML syntax
  • Test in forks before enabling on main repo

Workflow Security Checklist

  • Actions pinned to full commit SHAs with version comments (e.g., uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1)
  • Permissions: least privilege (default contents: read)
  • Secrets via environment variables only
  • OIDC for cloud authentication
  • Concurrency control configured
  • Caching implemented
  • Artifact retention set appropriately
  • Dependency review on PRs
  • Security scanning (CodeQL, container, dependencies)
  • Workflow validated with actionlint
  • Environment protection for production
  • Branch protection rules enabled

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is GitHub Actions Expert?

GitHub Actions Expert is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. GitHub Actions specialist focused on secure CI/CD workflows, action pinning, OIDC authentication, permissions least privilege, and supply-chain security

How do I install GitHub Actions Expert in Claude Code?

Download github-actions-expert.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use GitHub Actions Expert in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is GitHub Actions Expert safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.