# Github Workflow Best Practices

> Sub-skill of github-workflow: Best Practices.

- Skill: `vamseeachanta/github-workflow-best-practices` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/github-workflow-best-practices`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/github-workflow-best-practices/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/github-workflow-best-practices

---


# Best Practices

## Best Practices


### 1. Workflow Organization

- Use reusable workflows for common operations
- Implement proper caching strategies
- Set appropriate timeouts for each job
- Use workflow dependencies wisely

### 2. Security

- Store secrets in GitHub Secrets
- Use OIDC for cloud authentication
- Implement least-privilege principles
- Audit workflow permissions regularly

### 3. Performance

- Cache dependencies between runs
- Use appropriate runner sizes
- Implement early termination for failures
- Optimize parallel execution

### 4. Cost Management

- Use self-hosted runners for heavy workloads
- Implement concurrency controls
- Cache Docker layers
- Skip redundant workflow runs

