Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Github Actions?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vectora-os-github-actions)
---
name: github-actions
description: GitHub Actions — workflow design, job graphs and matrices, caching, concurrency groups, reusable workflows, environments with protection rules, OIDC to clouds, least-privilege `permissions`, pinning actions by SHA, required checks, avoiding injection in `run` with untrusted input. Use for CI/CD workflows (GitHub Actions, workflow, CI, pipeline, OIDC, required checks).
metadata:
category: delivery
---
# GitHub Actions
## Purpose
Run fast, secure pipelines that enforce the quality gates.
**Use when:** writing or reviewing workflows.
**Not for:** release decisions.
## Inputs
- Gate policy, build steps.
## Outputs
- Workflow files, timing evidence, security notes.
## Read first
- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "github actions"` for prior decisions, patterns and anti-patterns.
- [Quality gates](../../../policies/quality-gates.md)
## Steps
1. **Gates.** Run `npm run gates` stages as jobs; make them required checks.
Done when gates block merging.
2. **Speed.** Cache dependencies, parallelize, path filters.
Done when timing measured before/after.
3. **Security.** `permissions: contents: read` by default; pin actions by SHA; OIDC instead of static secrets.
Done when no write tokens on PRs from forks.
4. **Safety.** Never interpolate untrusted input (`github.event.*`) into `run`; pass via env.
Done when no script injection.
## Best practices
- `concurrency` with cancel-in-progress for PRs.
- Environments with required reviewers for deploys.
## Common mistakes
- `pull_request_target` with checkout of PR code.
- Broad tokens.
## Example
CI split into lint, test (4 shards), docs; cache hit 95%; 18 → 6 minutes; actions pinned by SHA.
## Reusable prompt
```text
Apply the GitHub Actions skill (.agents/skills/github-actions/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Write or review the workflows for gates, speed, least privilege, pinning and injection safety.
Return: Workflow files, timing evidence, security notes..
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```