Automated pipelines that trigger on push/PR and delegate work to Copilot:
| Recipe | Trigger | What It Does |
|---|---|---|
| Generate Docs | Push / PR | Analyzes commits, creates documentation issues, assigns Copilot to write the docs |
| Generate Tests | Push / PR | Identifies missing unit tests, creates issues, assigns Copilot to write them |
| Security Scan | Push / PR | Scans commits for OWASP Top 10 vulnerabilities, creates issues with remediation steps |
Continuous safeguards that enforce your standards as you code.:
| Recipe | Type | What It Does |
|---|---|---|
| Safe Install | Skill | Validates every package against supply chain attacks before installation |
| Custom Instructions | Instructions | Enforces security coding standards for all generated code |
| Approach | Steps |
|---|---|
| Use as a template | Click "Use this template" → get a ready-to-go repo with all recipes pre-configured |
| Cherry-pick recipes | Copy individual files from .github/workflows/, .github/prompts/, or .github/skills/ into your own repo |
| Learn by reading | Browse the docs/ folder for detailed explanations of how each recipe works |
- GitHub repository with GitHub Copilot enabled
- Copilot Coding Agent enabled for your organization/repository
- A Personal Access Token (PAT) with Copilot permissions
- Visit https://github.com/settings/personal-access-tokens/new
- Configure your token:
- Token name:
Copilot CLI Token(or any descriptive name) - Expiration: Set as appropriate for your security policies
- Repository access: Select the repositories where you'll use the workflows
- Token name:
- Under "Permissions" → "Account permissions", enable:
- Copilot Requests — Required for Copilot CLI to function
- Click "Generate token" and copy it immediately
- Go to your repository → Settings → Secrets and variables → Actions
- Click "New repository secret"
- Name:
COPILOT_CLI_TOKEN, Value: your PAT from Step 1
- Go to your repository → Settings → Copilot → Coding Agent
- Enable "Allow Copilot to open pull requests"
Push a small code change. The workflows will:
- Analyze your commit
- Create issues if documentation/tests/security fixes are needed
- Assign Copilot to resolve them automatically
.github/
├── copilot-instructions.md # Global Copilot behavior rules
├── prompts/ # Reusable prompt templates
│ └── security-scan.prompt.md
├── skills/ # IDE-time Copilot skills
│ └── safe-install/
├── workflows/ # GitHub Actions pipelines
│ ├── copilot-setup-steps.yml
│ └── security-scan.yml
docs/
├── workflows/ # Detailed workflow documentation
└── skills/ # Detailed skill documentation