Loading...
Loading...
GitHub Actions workflow authoring for CI/CD pipelines. Covers workflow syntax, triggers, jobs, steps, matrix strategies, caching, artifacts, reusable workflows, composite actions, secrets management, OIDC authentication, and permissions hardening. Use when creating workflows, configuring jobs, setting up caching, or automating releases. Use for github-actions, workflow, ci, cd, actions, jobs, steps, matrix, cache, artifact, secrets, reusable-workflow.
npx skill4agent add oakoss/agent-skills github-actions.github/workflows/| Pattern | Syntax / Action | Key Points |
|---|---|---|
| Push trigger | | Filter by branch, path, or tag |
| PR trigger | | Defaults to opened, synchronize, reopened |
| Scheduled trigger | | UTC only, minimum 5-minute interval |
| Manual trigger | | Define typed inputs for manual runs |
| Job dependencies | | Run jobs in sequence or parallel |
| Conditional job | | Expression-based job/step filtering |
| Matrix strategy | | Generates jobs for each combination |
| Dependency cache | | Hash-based keys with restore-keys fallback |
| Setup with cache | | Built-in caching for package managers |
| Upload artifact | | Share data between jobs or preserve outputs |
| Download artifact | | Retrieve artifacts from earlier jobs |
| Reusable workflow | | Called with |
| Composite action | | Bundle multiple steps into one action |
| Concurrency | | Cancel or queue duplicate runs |
| Environment secrets | | Scoped to repo, org, or environment |
| OIDC authentication | | Short-lived tokens for cloud providers |
| Step outputs | | Pass data between steps and jobs |
| Service containers | | Sidecar containers for integration tests |
| Timeout | | Fail fast on hung jobs or steps |
| Attestations | | SLSA build provenance for supply chain |
| Context | Example | Description |
|---|---|---|
| | Event metadata, repo info, actor |
| | Environment variables at current scope |
| | Encrypted secrets (masked in logs) |
| | Workflow dispatch or reusable inputs |
| | Current matrix combination values |
| | Outputs from previous steps |
| | Outputs from dependent jobs |
| | Runner environment info |
| | Repository or org configuration variables |
| Mistake | Correct Pattern |
|---|---|
Using | Pin to current major version ( |
Missing | Set on checkout when using custom tokens or OIDC |
Broad | Set |
| Cache key without dependency file hash | Include |
Secrets in | Secrets cannot be used in |
Using | Never run PR code with write permissions from |
| Not cancelling stale runs | Use |
| Storing structured data as a single secret | Create individual secrets per value for proper log redaction |
| Referencing action tags without SHA pinning | Pin third-party actions to full commit SHA for supply chain safety |
| Hardcoding runner OS in scripts | Use |
Using | Always provide restore-keys for partial cache matches |
Interpolating user input in | Pass untrusted values through |
No | Set explicit timeouts to fail fast on hung processes |
Using | Combine with status checks: |
ExploreTaskcode-reviewer