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.
npx skills add sawrus/agent-guides --skill github-actions-patternsgit clone --depth 1 https://github.com/sawrus/agent-guidesWrote 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.
[](https://agentmods.dev/skills/sawrus/agent-guides/github-actions-patterns)<a href="https://agentmods.dev/skills/sawrus/agent-guides/github-actions-patterns"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/github-actions-patterns/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.
<a href="https://agentmods.dev/skills/sawrus/agent-guides/github-actions-patterns"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/github-actions-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 5 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 138 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 148 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 150 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- high Privilege Escalation · line 150 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
- medium Excessive Agency · line 195 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00045 | $0.00743 |
| Opus 5.5 | $0.00018 | $0.00297 |
| Sonnet 5.5 | $0.00009 | $0.00149 |
| Haiku 4.5 | $0.00005 | $0.00074 |
Grade A, and why
github-actions-patterns 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GitHub Actions: change and debug a workflow
1. Read the current workflows
- List
.github/workflows/*.ymland theon:triggers of each file. - Find reusable workflows (
on: workflow_call) and composite actions under.github/actions/. - Change the reusable workflow only when the task says so; otherwise change the caller.
2. Make the change
- Set
permissions:at the top of the workflow to the minimum, for examplecontents: read. Grant more per job only where a step needs it. - Pin every third-party action to a full commit SHA and keep the version in a comment:
uses: actions/checkout@<40-char-sha> # v4.2.2. - Use
actions/setup-python,actions/setup-go, oractions/setup-javawith their built-incache:input before you add a separateactions/cachestep. - Set
timeout-minutes:on every job. - Add
concurrency:withcancel-in-progress: truefor pull request workflows. - Move steps that two workflows share into a reusable workflow or a composite action.
- Use
pull_request, notpull_request_target, for code from forks. Ifpull_request_targetis required, do not check out the fork head in that job. - Do not put
${{ github.event.* }}text such as titles or branch names directly intorun:; pass it throughenv:and quote the variable. - Read cloud credentials with OIDC (
permissions: id-token: write) instead of long-lived secrets. - Put deploys behind a GitHub Environment with required reviewers. Ask the user first before you trigger a production deploy.
3. Validate before you push
actionlint # syntax, expressions, shellcheck of run: blocks
zizmor .github/workflows/ # security findings (optional)
If actionlint is not installed, run it as a container: docker run --rm -v "$PWD":/repo -w /repo rhysd/actionlint.
4. Debug a failed run
- Get the log:
gh run list --limit 5, thengh run view <run-id> --log-failed. - Find the first failing step and its first error line.
- Decide the cause class:
- Permissions — a
403orResource not accessible by integrationneeds apermissions:entry. - Secret missing — secrets are empty in workflows from forks and in environments that do not define them.
- Cache — check the cache key inputs; a changed lock file must change the key.
- Runner image — compare the tool versions with the last green run.
- Permissions — a
- Rerun failed jobs with debug logs once:
gh run rerun <run-id> --failed --debug. - Fix the cause and push. Do not add
continue-on-error: trueto make the run green.
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.
- 1mo ago Changed · -138 lines · -21 tokens per session ab6b2b7c230e
- 3mo ago First seen · 196 lines · 66 tokens per session scan A 79460b96ee7c
github-actions-patterns is a skill published in the GitHub repository sawrus/agent-guides (21 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 743 once invoked, about $0.0002 per session on Opus 5.5. 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.
github-actions-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| github-actions-patternssawrus/agent-guides | Skill | 21 | 2d ago | MIT | A | 45 | Claude Code, Codex |
| ci-cd-and-automationaddyosmani/agent-skills | Skill | 123k | 2d ago | MIT | A | 45 | Claude Code |
| agentic-actions-auditorsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 59 | Claude Code |
| depsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 14 | Claude Code |
| sast-configurationsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 31 | Claude Code |
| expo-cicd-workflowssickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 60 | Claude Code, Codex |
| k6-load-testingsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 35 | Claude Code |