Skip to content
Back to skills

Github Actions

ASecurity

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

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrustgogitci/cdsecurity

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add vectora-os/kit --skill github-actions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Actions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Actions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-github-actions/badge)](https://www.skillsdirectory.com/skills/vectora-os-github-actions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.