working-with-github-actions
/working-with-github-actions
Use when building, configuring, debugging, or optimizing GitHub Actions CI/CD workflows. Covers workflow YAML syntax, event triggers, job orchestration, matrix builds, reusable workflows, composite actions, secrets and variables, artifact and cache management, OIDC-based cloud deployments, self-hosted runners, and security hardening. Also covers adjacent tooling: release-please, dependabot, CodeQL, labeler, and stale management. Invoke whenever the user mentions GitHub Actions, .github/workflows, CI/CD, workflow files, action versions, self-hosted runners, OIDC cloud deployments, or wants to a
- Author
- joeblackwaslike ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 53
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/update_docs.js
What it does and when to use it
Use when building, configuring, debugging, or optimizing GitHub Actions CI/CD workflows. Covers workflow YAML syntax, event triggers, job orchestration, matrix builds, reusable workflows, composite actions, secrets and variables, artifact and cache management, OIDC-based cloud deployments, self-hosted runners, and security hardening. Also covers adjacent tooling: release-please, dependabot, CodeQL, labeler, and stale management. Invoke whenever the user mentions GitHub Actions, .github/workflows, CI/CD, workflow files, action versions, self-hosted runners, OIDC cloud deployments, or wants to a
Original author description
Use when building, configuring, debugging, or optimizing GitHub Actions CI/CD workflows. Covers workflow YAML syntax, event triggers, job orchestration, matrix builds, reusable workflows, composite actions, secrets and variables, artifact and cache management, OIDC-based cloud deployments, self-hosted runners, and security hardening. Also covers adjacent tooling: release-please, dependabot, CodeQL, labeler, and stale management. Invoke whenever the user mentions GitHub Actions, .github/workflows, CI/CD, workflow files, action versions, self-hosted runners, OIDC cloud deployments, or wants to a
How it works
- Quick Reference
- Cookbook
- Key Concepts
- Cross-References
SKILL.md preview
---
name: working-with-github-actions
description: "Use when building, configuring, debugging, or optimizing GitHub Actions CI/CD workflows. Covers workflow YAML syntax, event triggers, job orchestration, matrix builds, reusable workflows, composite actions, secrets and variables, artifact and cache management, OIDC-based cloud deployments, self-hosted runners, and security hardening. Also covers adjacent tooling: release-please, dependabot, CodeQL, labeler, and stale management. Invoke whenever the user mentions GitHub Actions, .github/workflows, CI/CD, workflow files, action versions, self-hosted runners, OIDC cloud deployments, or wants to automate anything that runs on GitHub push/PR/schedule events."
metadata:
last_updated: "2026-06-06"
---
# Working with GitHub Actions
This skill provides reference docs, a cookbook of real-world patterns, and best practices for GitHub Actions.
## Quick Reference
| Task | Reference file |
|---|---|
| Workflow YAML syntax | `references/workflow-syntax.md` |
| Events / triggers | `references/triggers.md` + `references/trigger-a-workflow.md` |
| Expressions | `references/expressions.md` |
| Contexts (github, env, secrets…) | `references/contexts.md` |
| Runners (hosted) | `references/runners.md` |
| Larger runners | `references/larger-runners.md` |
| Self-hosted runners | `references/self-hosted-runners.md` |
| Choose runner for a job | `references/choose-runner.md` |
| Caching dependencies | `references/caching.md` |
| Artifacts | `references/artifacts.md` |
| Matrix builds | `references/matrix-strategy.md` |
| Reusable workflows | `references/reusable-workflows.md` |
| Custom / composite actions | `references/custom-actions.md` |
| Secrets | `references/secrets.md` + `references/use-secrets.md` |
| Variables | `references/variables-ref.md` + `references/use-variables.md` |
| GITHUB_TOKEN / permissions | `references/github-token.md` |
| Environments and approvals | `references/manage-environments.md` + `references/deployments-and-environments.md` |
| Controlling deployments | `references/control-deployments.md` |
| OIDC overview | `references/oidc-concepts.md` |
| OIDC for cloud providers | `references/oidc-cloud.md` |
| OIDC for AWS | `references/oidc-aws.md` |
| OIDC for GCP | `references/oidc-gcp.md` |
| OIDC for Azure | `references/oidc-azure.md` |
| Security: script injection | `references/script-injections.md` |
| Security: compromised runners | `references/compromised-runners.md` |
| Concurrency control | `references/concurrency.md` + `references/control-concurrency.md` |
| Conditional jobs | `references/control-jobs-with-conditions.md` |
| Workflow commands (::set-output etc) | `references/workflow-commands.md` |
| Current action versions | `references/action-versions.md` |
## Cookbook
Real-world, copy-paste patterns:
| Pattern | File |
|---|---|
| TypeScript/Node.js full CI (pnpm + biome + vitest + build) | `references/cookbook-typescript-node-ci.md` |
| Composite action: reusable setup step | `references/cookbook-composite-action-setup.md` |
| Release Please + npm publish + docs deploy | `references/cookbook-release-please-npm.md` |
| CodeQL security scanning | `references/cookbook-codeql.md` |
| Dependabot for npm and GitHub Actions | `references/cookbook-dependabot.md` |
| PR labeler from file paths | `references/cookbook-labeler.md` |
| Stale issue and PR management | `references/cookbook-stale.md` |
| Python CI (uv + pytest + coverage) | `references/cookbook-python-ci.md` |
| Docker build and push (GHCR) | `references/cookbook-docker-build-push.md` |
| Deploy to AWS via OIDC (no stored secrets) | `references/cookbook-deploy-aws-oidc.md` |
| Reusable workflow: call-and-share pattern | `references/cookbook-reusable-workflow.md` |
| Monorepo: path-filtered jobs | `references/cookbook-monorepo-path-filter.md` |
## Key Concepts
### Workflow structure
A workflow file lives in `.github/workflows/*.yml`. Minimal anatomy:
```yaml
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "hello"
```
### Action pinning
Always pin actions to a full SHA for production workflows, or a major version tag for convenience:
```yaml
# Safest: full SHA (immune to tag moves)
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Convenient: major version (updates on patch/minor automatically)
uses: actions/checkout@v4
```
Check `references/action-versions.md` for current latest versions of commonly used actions.
### Secrets vs variables vs environments
- **Secrets** (`secrets.MY_SECRET`): encrypted, never logged, unavailable to forked PR workflows by default
- **Variables** (`vars.MY_VAR`): non-sensitive config values, visible in logs
- **Environment secrets/vars**: scoped to a named deployment environment (with optional approval gate)
### GITHUB_TOKEN permissions
Default permissions vary by repo setting. Always declare explicit minimal permissions:
```yaml
permissions:
contents: read
pull-requests: write
```
For OIDC cloud auth, add `id-token: write`.
### Concurrency
Prevent overlapping runs on the same branch:
```yaml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
```
Use `cancel-in-progress: false` for release/deploy jobs where partial runs are dangerous.
## Cross-References
- `git-github-workflows` skill — router for any git/GitHub task (not CI/CD)
- `working-with-github` skill — gh CLI, REST/GraphQL APIs, PRs, releases, tokens, and the Dependabot/CodeQL **security config** (this skill keeps the Dependabot/CodeQL **workflow** cookbooks)
- `working-with-git` skill — raw git: history rewriting, bisect, conflicts, recovery
- `developing-for-github` skill — GitHub Apps, webhooks, Octokit SDKs
- `deploy` skill — deployment orchestration across providers
Files in this package (53)
- SKILL.md 6 KB
- references/action-versions.md 3 KB
- references/artifacts.md 2 KB
- references/caching.md 3 KB
- references/choose-runner.md 1 KB
- references/compromised-runners.md 9 KB
- references/concurrency.md 2 KB
- references/contexts.md 49 KB
- references/control-concurrency.md 1 KB
- references/control-deployments.md 12 KB
- references/control-jobs-with-conditions.md 2 KB
- references/cookbook-codeql.md 5 KB
- references/cookbook-composite-action-setup.md 8 KB
- references/cookbook-dependabot.md 5 KB
- references/cookbook-deploy-aws-oidc.md 7 KB
- references/cookbook-docker-build-push.md 5 KB
- references/cookbook-labeler.md 4 KB
- references/cookbook-monorepo-path-filter.md 11 KB
- references/cookbook-python-ci.md 6 KB
- references/cookbook-release-please-npm.md 7 KB
- references/cookbook-reusable-workflow.md 6 KB
- references/cookbook-stale.md 5 KB
- references/cookbook-typescript-node-ci.md 11 KB
- references/custom-actions.md 4 KB
- references/dependency-caching-ref.md 28 KB
- references/deployments-and-environments.md 9 KB
- references/expressions.md 15 KB
- references/github-token.md 3 KB
- references/larger-runners.md 9 KB
- references/manage-environments.md 8 KB
- references/matrix-strategy.md 9 KB
- references/oidc-aws.md 8 KB
- references/oidc-azure.md 5 KB
- references/oidc-cloud.md 7 KB
- references/oidc-concepts.md 13 KB
- references/oidc-gcp.md 5 KB
- references/oidc-with-reusable-workflows.md 6 KB
- references/reusable-workflow-concepts.md 9 KB
- references/reusable-workflows.md 17 KB
- references/reusing-workflow-configurations.md 15 KB
- references/runners.md 9 KB
- references/script-injections.md 4 KB
- references/secrets.md 5 KB
- references/self-hosted-runners.md 18 KB
- references/trigger-a-workflow.md 12 KB
- references/triggers.md 66 KB
- references/use-secrets.md 14 KB
- references/use-variables.md 12 KB
- references/variables-concepts.md 2 KB
- references/variables-ref.md 15 KB
- references/workflow-commands.md 32 KB
- references/workflow-syntax.md 77 KB
- scripts/update_docs.js 13 KB
Versions
The database has no other skills named working-with-github-actions.
Database snapshot: 13.11.2026 · package version acd30090d16f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100github-actions
Covers GitHub Actions: workflow YAML, runners, marketplace actions, reusable workflows, composite actions, OIDC authentication, matrix builds, caching, secrets, and environments. WHEN: \"GitHub Actions\", \"workflow\", \".github/workflows\", \"actions/checkout\", \"GitHub… - 95github-actions
Use this skill when the user says 'GitHub Actions', 'CI/CD', 'workflow', 'reusable workflow', 'composite action', 'matrix build', 'actions/checkout', 'GITHUB_TOKEN', 'self-hosted runner', or when setting up CI/CD pipelines on GitHub. Covers: workflow files, reusable workflows,… - 100github-actions-conventions
Best practices and conventions for GitHub Actions CI/CD workflows. Covers workflow structure, jobs, steps, triggers, environment variables, secret management, OIDC authentication, caching strategies, matrix builds, reusable and composite actions, testing integration (unit,… - 100github-ci
Write and maintain GitHub Actions CI workflows, including workflow YAML structure, triggers, runners, matrix builds, caching, testing patterns, and secrets management. Use when working with .github/workflows, GitHub Actions, CI pipelines, workflow dispatch, or action configuration. - 100deployment-pipelines
Use when authoring or reviewing CI/CD pipelines — GitHub Actions workflows, reusable workflows, composite actions, OIDC federation to AWS/GCP, caching, artifacts, and pipeline security hardening. Triggers on edits to .github/workflows/**, action.yml, composite action… - 100github-actions-pipelines
Use this skill when the user says 'github actions pipeline architecture', 'reusable workflow', 'workflow_call', 'matrix build', 'actions cache', 'oidc to aws from github', 'build and push image in actions', 'gitops update from ci', 'secure github actions'. Designs an end-to-end…