GitHub Actions Secure CI/CD Capability Pack Skill
Expert GitHub Actions capability skill for secure workflow architecture, token minimization, supply-chain controls, and CI reliability.
Open the source and read safety notes before installing.
Prerequisites
- Existing workflows or target CI/CD architecture
- Branch protection and environment policy context
- Security/compliance requirements
Schema details
- Install type
- package
- Reading time
- 9 min
- Difficulty score
- 88
- Troubleshooting
- Yes
- Breaking changes
- No
- Package verified
- Yes
- SHA-256
- 171cde88dd94e324d349dfa76d0910dfd8bd3da54f1f22898331b04f5132e4b0
- Skill type
- capability-pack
- Skill level
- expert
- Verification
- validated
- Verified at
- 2026-04-10
| Platform | Support | Install path |
|---|---|---|
| claude-code | Native | .claude/skills/<skill-name>/SKILL.md |
| codex | Native | .agents/skills/<skill-name>/SKILL.md |
| windsurf | Native | .windsurf/skills/<skill-name>/SKILL.md |
| gemini | Native | .gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md |
| cursor | Adapter | .cursor/rules/<skill-name>.mdc |
| cli | Manual | AGENTS.md or tool-specific context file |
Full copyable content
# Trigger
"Apply the GitHub Actions secure CI/CD capability pack to this repository."
# Required output
1) Workflow threat model
2) Permissions and token scope plan
3) Supply-chain hardening changes
4) Reliability and failure-recovery checklistAbout this resource
Knowledge Freshness
This capability pack is pinned to documentation verified on 2026-04-10. When upstream docs change, refresh endpoint contracts, examples, and constraints before using this skill for production changes.
Retrieval Sources
- https://docs.github.com/actions
- https://docs.github.com/actions/security-for-github-actions/security-guides/automatic-token-authentication
- https://docs.github.com/actions/learn-github-actions/reusing-workflows
Always prefer direct retrieval from official docs/API references over model memory for limits, endpoint signatures, and behavior guarantees.
Core Workflow
- Confirm target version/runtime and pull latest official docs for the task scope.
- Build an execution plan with explicit read-only discovery before any mutation.
- Validate contracts, permissions, and safety constraints before applying changes.
- Execute with deterministic checkpoints and rollback criteria.
- Produce a verification report with evidence, caveats, and next actions.
Overview
This capability pack teaches agents how to build secure and resilient GitHub Actions systems. It focuses on practical controls that reduce compromise risk and operational breakage.
Capability Scope
- Workflow architecture and trust boundaries
- Token permissions and environment scoping
- Action pinning and supply-chain controls
- Reusable workflow governance
- Build reliability and incident handling
Compatibility
Native
- Claude Code / Claude: native skill usage via
SKILL.md. - Codex/OpenAI workflows: compatible with Agent Skills-style
SKILL.mdcontent as reusable workflow instructions.
Manual Adaptation
- Gemini CLI: native skill usage via
.gemini/skills/<skill-name>/SKILL.mdor.agents/skills/<skill-name>/SKILL.mdwhere supported. - Cursor: use the generated
.cursor/rules/*.mdcadapter for project rules. - OpenClaw and similar agents: use the same skill content as a reusable prompt/workflow file when native skill import is unavailable.
Production Rules
- Grant minimum workflow permissions by job.
- Pin third-party actions to immutable refs.
- Separate trusted release workflows from untrusted PR execution.
- Capture artifacts/logs for post-failure diagnostics.
Troubleshooting
Issue: CI passes in PRs but fails after merge
Fix: Align PR and main workflow environments and dependency assumptions.
Issue: Workflow has excessive token scope
Fix: Reduce permissions per job and isolate privileged steps to protected environments.
Issue: Third-party action risk is unclear
Fix: Pin exact versions/SHAs and periodically review upstream security posture.
Output Contract
- Provide an implementation plan ordered by risk and dependency.
- Provide exact production-ready config/commands with no placeholders.
- Call out secrets, permissions, and least-privilege requirements.
- Include rollback and recovery guidance for each risky step.
Validation Checklist
- Verify all referenced docs/versions before applying changes.
- Run regression checks for core user flow and error paths.
- Confirm observability/logging is enabled for changed components.
- Confirm security controls (auth, rate limits, input validation) still pass.
- Record final known limitations and follow-up actions.
Source citations
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.