Analyze GitHub Actions workflows and surface speed & reliability improvements.
Scans your .github/workflows/ directory for common performance and reliability issues:
- Missing dependency caching
- Broad push triggers without branch filters
- Missing concurrency groups
- Actions pinned to branch refs instead of version tags
Posts a report as a PR comment (optional) or logs to the Actions output.
name: Optimize Workflows
on: [pull_request]
jobs:
optimize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ollieb89/workflow-optimizer@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
pr-number: ${{ github.event.pull_request.number }}| Input | Required | Default | Description |
|---|---|---|---|
token |
✅ | — | GitHub token |
workflows-dir |
❌ | .github/workflows |
Directory to scan |
pr-number |
❌ | — | PR to comment on |
| Output | Description |
|---|---|
suggestions-count |
Number of suggestions found |
report |
Markdown optimization report |
| Rule | Severity | Description |
|---|---|---|
missing-cache |
No dependency caching detected | |
broad-trigger |
Push trigger lacks branch filter | |
missing-concurrency |
ℹ️ Info | No concurrency group defined |
unpinned-actions |
Actions pinned to branch refs |
github-actions, workflow-optimizer, ci-cd, automation, performance, github, developer-tools
MIT © 2026 ollieb89