A practical, decision-focused Bug Bash workflow using GitHub Issues, issue forms and GitHub Actions.
Start with the Bug Bash Playbook by Ludovico Besana. It is the companion resource for this repository.
This repository demonstrates the process, not a checkout implementation. The payment scenario, findings and decisions are teaching examples, not verified production incidents.
A Bug Bash should reduce uncertainty and improve a decision, not maximise bug count. Capture observations, investigate risk, and turn material findings into durable protections.
flowchart LR
A[Production signals] --> B[Risk map]
B --> C[Charter]
C --> D[Finding]
D --> E[Human triage]
E --> F[Decision and durable protection]
F --> B
GitHub provides a shared record. Automation supports the process without deciding severity, assigning responsibility, closing findings or accepting risk.
| Step | Resource |
|---|---|
| Understand the release decision and risks | Risk map |
| Pick an exploratory mission | Charter library |
| Capture a finding | Issue form |
| See an untriaged teaching example | Backup A / issue #1 |
| See a triaged teaching example | Backup B / issue #2 |
| Record a material decision | Quality Decision Record |
| Turn the checkout risk into engineering work | Recovery acceptance contract |
Issues #1 and #2 intentionally represent the same observation at different stages. Do not interpret them as two independent product defects. Please do not close or edit these teaching fixtures during rehearsal.
- Git, Bash, GitHub CLI (
gh) andjqinstalled. - A GitHub account authenticated with
gh auth loginand write access to the target repository. - GitHub Issues and GitHub Actions enabled.
- Permission to push workflows (the
workflowscope for a classic personal access token, or equivalent permissions).
Create a fork or copy this repository into a new GitHub repository, then clone your copy. Avoid running the demo against the upstream repository or a production issue tracker.
git clone https://github.com/OWNER/REPOSITORY.git
cd REPOSITORY
gh auth status
bash scripts/bootstrap-labels.sh OWNER/REPOSITORYReplace OWNER/REPOSITORY with your actual target. The bootstrap script creates or updates the demo labels, including their colours and descriptions. The Issue Form only applies labels that already exist.
Ensure .github/workflows/triage-bug-bash-finding.yml is on the target's default branch. Open Issues → New issue → Bug Bash finding, submit the values from the demo scenario, then check the issue for the automated triage comment.
Optionally seed two backup findings in your own demo repository:
bash .claude/skills/setup-bug-bash-demo/scripts/create-backup-issues.sh OWNER/REPOSITORYThe script creates or reuses A (fresh finding) and B (triaged finding with a teaching decision record). Run setup sequentially, not from multiple terminals. Verify both links, labels and comments before a workshop. The Claude Code setup skill describes the same preparation workflow.
| Time | Action | Learning objective |
|---|---|---|
| 0:00 | Show the risk map | Start from uncertainty, not generic testing. |
| 0:45 | Pick a charter | Guide exploration without prescribing every step. |
| 1:30 | Open the finding form | A finding is not automatically a defect. |
| 2:30 | Submit the checkout recovery scenario | Capture evidence before diagnosis. |
| 3:15 | Show the triage comment | Automation preserves the question; humans own the decision. |
| 4:00 | Review the decision record | Agree on durable protection, owner and review date. |
| 4:45 | Revisit the risk map | Feed new knowledge into the next session. |
Use the backup issues if Actions is slow. Do not use real payment details, credentials or customer data.
| Stage | Labels / action |
|---|---|
| Capture | bug-bash, needs-triage |
| Investigate | Choose a finding:* label based on evidence |
| Decide | Use decision-needed when a material decision remains |
| Protect | Link implementation, tests, telemetry, design, requirements or documentation |
| Review | Record owner, residual risk and review date; use accepted-risk only after human approval |
Remove needs-triage only once triage is complete. A finding may be closed after evidence disproves it or the agreed follow-up is recorded; closure alone is not evidence of protection.
| Symptom | Check |
|---|---|
| Missing automatic labels | Run the label bootstrap against the correct repository before submitting. |
| No triage comment | Confirm Actions is enabled, the workflow is on the default branch, and the issue has bug-bash. Inspect gh run list --repo OWNER/REPOSITORY. |
| HTTP 403 | Check repository permissions, token scopes and organization Actions policies. |
| Backup script reports missing comments | Inspect the workflow run and the issue comments before presenting. |
| Checkout cannot be launched | Expected: there is no frontend, backend, payment provider or sandbox in this repository. Use a fictional scenario or a separate test system. |
.github/ISSUE_TEMPLATE/ Finding form and chooser
.github/workflows/ GitHub Actions automation
.claude/skills/ Optional workshop setup skill
docs/ Risks, charters, decisions and acceptance contract
scripts/ Label bootstrap and triage automation
tests/ Deterministic regression tests
Run these commands locally from the repository root (requires Python 3, Bash, jq, ShellCheck and actionlint):
git ls-files -z '*.sh' | xargs -0 -n 1 bash -n
git ls-files -z '*.sh' | xargs -0 shellcheck
actionlint
python3 -m unittest discover -s tests -vThe regression tests use an isolated fake GitHub CLI, not a real repository or credentials. They cover repeated setup, pagination, duplicate markers, closed fixtures, missing triage comments and API read failures. The GitHub Actions quality workflow runs on pull requests and pushes to main. A real issue-event smoke test is documented in issue #5. Repeat the full setup in a disposable repository before a workshop; mocked tests do not prove GitHub permissions or form rendering.
Read CONTRIBUTING.md. Report infrastructure defects separately from teaching scenarios, include reproducible evidence, and keep changes narrowly scoped.
- Bug Bash Playbook
- GitHub Issue Form syntax
- GitHub Actions events
- GitHub Actions permissions
- Managing labels
- Aaron Spencer's projects
Released under the MIT License. See CHANGELOG.md for version history and SECURITY.md for vulnerability reporting. Maintainers: see release and repository settings.