160-github-actions

160-github-actions is a cursor rule for Cursor from d-padmanabhan/agent-engineering-handbook. It costs 0 tokens per session (1,615 once invoked), scanned A, original, MIT.

Rules for writing and reviewing GitHub Actions workflows, which automate tasks such as testing and deployment when changes happen in a repository. They focus on security, speed, maintainability, clear failures, caching, reuse, logging, and input validation.

In plain words
What is it for?
Use them when creating or reviewing GitHub Actions continuous-integration and deployment workflows.
Why use it?
They reduce common workflow problems such as excessive permissions, unclear failures, repeated configuration, slow runs, and unsafe inputs.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use them when creating or reviewing GitHub Actions continuous-integration and deployment workflows.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/d-padmanabhan/agent-engineering-handbook/160-github-actions
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbook

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 160-github-actions

README.md
[![agentmods](https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/160-github-actions/github.svg)](https://agentmods.dev/rules/d-padmanabhan/agent-engineering-handbook/160-github-actions)
Your own site
<a href="https://agentmods.dev/rules/d-padmanabhan/agent-engineering-handbook/160-github-actions"><img src="https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/160-github-actions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for 160-github-actions

Your own site · 80×15
<a href="https://agentmods.dev/rules/d-padmanabhan/agent-engineering-handbook/160-github-actions"><img src="https://agentmods.dev/badge/rules/d-padmanabhan/agent-engineering-handbook/160-github-actions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01615
Opus 5.5 $0.00000 $0.00646
Sonnet 5.5 $0.00000 $0.00323
Haiku 4.5 $0.00000 $0.00161

Measured 21d ago against content hash e5bfc6d0fc7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

160-github-actions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 21d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/160-github-actions.mdc · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Actions Engineering Gates

This rule owns mandatory GitHub Actions policy only. Use the GitHub Actions skill (${HANDBOOK_ROOT}/skills/cicd-github-actions/SKILL.md) for authoring workflows, reusable patterns, examples, troubleshooting, and migration procedures. Use the GitHub Actions CI/CD skill (${HANDBOOK_ROOT}/skills/cicd-github-actions/SKILL.md) together with the dependency currency workflow (${HANDBOOK_ROOT}/skills/core-engineering/references/dependency-and-toolchain-currency.md) when upgrading actions.

Workflow Documentation

  • Use a descriptive Title Case workflow name: and a kebab-case workflow filename.
  • Put a bordered operational comment block immediately after name:. Use the headings Purpose, Triggers, Required Secrets, and Dependencies, with blank comment lines between sections. Record approval, rollback, recovery, or runbook requirements under Dependencies.
  • Document reusable workflow and action inputs, outputs, secrets, defaults, and side effects where they are declared.
  • Give jobs and non-obvious steps descriptive names. Do not add comments that merely restate YAML.
  • Never place secret values, sensitive identifiers, or production data in comments, summaries, examples, logs, or artifacts.
  • Keep detailed operating procedures in repository documentation and link them from the workflow comment when needed.

Token, Event, and Runner Trust

  • Set permissions: {} at workflow root, then grant each job only the capabilities it requires.
  • Grant id-token: write only to jobs that perform OpenID Connect (OIDC) authentication.
  • Use pull_request on GitHub-hosted runners for untrusted pull-request validation. Do not combine pull_request_target, privileged permissions, secrets, deployment capability, or privileged self-hosted runners with execution of untrusted code.
  • Treat issue text, pull-request metadata, commit messages, branch and tag names, dispatch inputs, matrix values, and third-party action outputs as untrusted.
  • Do not interpolate untrusted expressions directly into run: scripts. Assign them to step-level env, quote the shell variable, and validate constrained values before use.
  • Secrets cannot be referenced directly in if: conditions. Map a secret to a narrowly scoped job environment variable, then test the env context at step scope.
  • Use protected GitHub Environments for production authorization. Configure required reviewers and deployment-branch restrictions outside workflow code.
  • Prefer OIDC and short-lived cloud credentials. Do not add long-lived cloud keys when federation is available.
  • Treat self-hosted runners as privileged infrastructure. Isolate runner groups by trust boundary, prefer ephemeral single-job runners, restrict workflow access, and do not run untrusted fork code on runners with internal access.

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 21d ago Changed · -1,841 lines · -11 tokens per session scan F → A e5bfc6d0fc7d
  2. 26d ago Changed · +7 lines d0c8c947b601
  3. 1mo ago Changed · -8 lines 9b4582b47e1c
  4. 1mo ago First seen · 1,941 lines · 11 tokens per session scan F cb68cefa4480

Subscribe to this mod's changes

160-github-actions is a cursor rule published in the GitHub repository d-padmanabhan/agent-engineering-handbook (19 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,615 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.