MSBA-361 · Lesson 12 of 12 · 19 min
Case study: a security program for a software company
▶ Video coming soon A video version of this lesson is on the way.
The twelfth session on Thursday, November 19, 2026, brought back a case from the enterprise administration course. In MSBA-290's capstone, Skerry bought Driftline Labs, the Seattle company that builds the route-planning and offline-maps app many Skerry customers use, and planned a twelve-week move of its people and repositories into the Skerry enterprise. That plan covered identity, organizations and migration waves. It said little about code security, beyond applying Skerry's standard security configuration as repositories arrived. Freya asked the group to finish the job: design the code security program Driftline would need. Like MSBA-290's capstone, it is a fictional case, but every decision rests on the features covered in this course.
Driftline was a different kind of company from Skerry. Skerry is a retailer that writes software to run its business; Driftline is a software company whose product is its code. A vulnerability in Skerry's reporting services exposes store data; a vulnerability in Driftline's app ships to every customer's phone. The program had to fit that difference.
The starting position
Saoirse Kamakau-Lund, Driftline's CTO, joined the session by video and filled in what the enterprise course's summary had left out.
| Area | Driftline before the move |
|---|---|
| Repositories | 412: 96 platform services and libraries, 118 Android, 167 iOS, 31 public map tools |
| Languages | Swift for iOS, Kotlin for Android, Go and TypeScript for platform services, some C++ in the offline map engine |
| People | 240 developers, 18 contractors from two agencies, one security engineer |
| Code scanning | CodeQL default setup on 8 of the 31 public repositories, enabled by individual maintainers; nothing on private repositories |
| Other tools | A commercial mobile application scanner run before each release, producing PDF reports |
| Supply chain | Dependabot alerts on; no dependency review |
| Release process | iOS and Android release trains every two weeks that cannot slip |
| Actions | About 180,000 minutes a month, mostly macOS runners for iOS builds |
Two facts stood out. First, Driftline had no code scanning on the code that mattered most, its private app and service code. Second, its one security engineer had spent most of each release cycle reading the mobile scanner's PDF reports and copying findings into tickets, which left no time for anything else.
Goals and constraints
The group agreed four goals for the twelve weeks and wrote down the constraints that would shape every decision.
| Goal | Measure at week 12 |
|---|---|
| Coverage | Every migrated private repository with supported code analyzed by CodeQL; the mobile scanner's results in GitHub |
| Prevention | The Code scanning gate active for Driftline repositories classified confidential or restricted |
| Remediation | A first campaign under way for the most common serious rule in Driftline's code |
| Ownership | Every Driftline repository with an owning team and a named security champion |
The constraints were the release trains, the cost of macOS runners, the fact that 18 contractors worked in some repositories, and a security team of one on Driftline's side. Freya added a fifth: the program had to look like Skerry's, so that the scorecard, campaigns and roles did not need a second set of rules.
Coverage: setting up analysis by wave
MSBA-290's plan moved repositories in waves: platform in week 5, public repositories to skerry-oss in week 6, Android in week 7 and iOS in week 9, each after a release. Code scanning would follow the same waves, because the Skerry code security configuration attaches when a repository gets the right custom properties.
| Wave | Setup | Reason |
|---|---|---|
| Platform (Go, TypeScript) | Default setup through the standard configuration | Supported languages that need no build; default setup is fastest to run at scale |
| Platform map engine (C++) | Advanced setup through the advanced configuration variant | Compiled code with a custom build; incremental analysis helps pull request times |
| Public map tools (skerry-oss) | Default setup with Copilot Autofix | Code scanning is available for public repositories at no charge |
| Android (Kotlin) | Default setup where it analyzes successfully; advanced setup with the Gradle build where it does not | Lesson 2's checklist decides each repository |
| iOS (Swift) | Advanced setup on macOS runners, triggered on pull requests to main and a weekly schedule | Swift analysis needs a build on macOS; trigger choices control runner cost |
The iOS decision took the longest. Leocadie Brannoch, who had built the data group's advanced setup, explained that CodeQL's Swift analysis builds the code, and Driftline's iOS code builds only on macOS. Running it on every push to every branch would roughly double Driftline's macOS minutes. The group chose pull requests targeting main plus a weekly scheduled scan, with path filters that skipped documentation and asset-only changes. Lorcan asked for a separate budget line for the extra minutes so that the cost could be seen, using the cost center MSBA-290 had already set up for macOS usage.
Leocadie also recorded one thing to check in the documentation before week 9: the current runner requirements for Swift analysis, because CodeQL's language support changes often and a decision made from memory could be out of date by then.
Bringing the mobile scanner into GitHub
The mobile application scanner could export SARIF. Seraphine proposed running it in the iOS and Android release workflows and uploading the results with the upload-sarif action, using a distinct category for each app, as lesson 5 described. The findings would appear as code scanning alerts beside CodeQL's, with the same triage, assignment and campaign tools, instead of as PDF pages copied into tickets by hand.
Two precautions came from lesson 5. The upload would be tested first in skerry-sandbox, to check that file paths in the SARIF matched paths in the repository so that alerts pointed to real lines. And the scanner's rules would be mapped to security-severity values before any gate used them, so that a tool that rated everything high would not block every release.
Triage before gates
Freya's rule from Skerry's own rollout applied: nobody turns on a merge gate for code whose alerts nobody has read. For each wave, the first two weeks after migration were for analysis and triage only.
| Step after each wave | Who | Output |
|---|---|---|
| Confirm every repository has a passing analysis | Leocadie and the wave's team leads | Coverage view in security overview showing no failed or missing analyses |
| Group alerts by rule and repository | Seraphine | A short list of the rules producing most serious alerts |
| Triage the top rules with the owning teams | Champions and app security | Fixes, documented dismissals and query tuning requests |
| Run the Code scanning gate in evaluate mode | App security | Rule insights showing what would have been blocked |
| Activate the gate | Freya, after review | Enforcement for the wave's confidential and restricted repositories |
Saoirse raised the release trains. If the gate blocked a release-day pull request, would the release slip? The answer combined three earlier lessons. The gate applies to alerts a pull request introduces, not to the backlog, so a release branch would not be blocked by old findings. Release-day changes are usually small. And where an urgent change did introduce an alert that could not be fixed in time, the route was a delegated dismissal request with a revisit date, approved by app security within the one-working-day target, not a bypass.
Fixing: Autofix, campaigns and the backlog
Copilot Autofix would be on by default, as it was across Skerry, with one exception the group discussed and rejected: the offline map engine's C++ code. Unlike Skerry's certified firmware, it carried no certification constraint, so the usual rule applied: developers review every suggestion as they would any change.
For the backlog, the group planned one campaign in week 11, after the Android wave's triage. Choosing its alerts would use lesson 7's three tests: shared cause and fix, risk worth the interruption, and capacity before the due date. Because Driftline's teams had release trains rather than a holiday freeze, the due date would be set at the end of a release cycle, not a calendar month. Agentic autofix would stay limited to skerry-sandbox until Skerry's own pilot results had been reviewed.
People and roles
Driftline's security engineer would join Freya's application security team and receive the security manager role through that team, giving her the same view of alerts as the rest of the team. Each of Driftline's twelve development teams would nominate a security champion and receive the custom Security champion role from lesson 9. Contractors' access followed MSBA-290's plan, with the guest collaborator role and repository-level access; they would see alerts only in the repositories they could write to, and could not dismiss alerts in restricted repositories without approval.
Measuring the program
Driftline's repositories would appear on Skerry's existing scorecard through the owning-team property, so that the same five measures applied: passing analysis coverage, open critical and high alerts on internet-facing restricted repositories, median days to fix, the share of alerts fixed before merge, and campaign progress. The group added one Driftline-specific measure for the first quarter: the share of mobile scanner findings handled inside GitHub rather than in tickets, with a target of all of them by the iOS wave plus two weeks.
Cost
Lorcan's part of the session was cost. Code Security is billed per active committer, so the question was how many Driftline people would commit to private repositories with Code Security enabled. With 240 developers and 18 contractors, the upper bound was 258 committers. At the list price of 30 US dollars per active committer per month, that is 7,740 US dollars a month at most, before any enterprise discount. People who also committed to existing Skerry repositories would be counted once. The public repositories in skerry-oss would not add committers, because code scanning on public repositories carries no charge.
Worked problem
Estimating the program's cost
Of Driftline's 258 developers and contractors, 22 contractors and developers are expected not to commit to any private repository in a 90-day period, and 6 already commit to Skerry repositories that have Code Security. How many new Code Security committers should Lorcan budget for, and what is the monthly list cost?
Show solution
- Start with 258 people.
- Remove the 22 who will not commit to private repositories with the product enabled: 236.
- Remove the 6 already counted for Skerry: 230.
- Multiply by 30 US dollars per committer per month: 6,900.
Answer: About 230 new committers, roughly 6,900 US dollars a month at list price, plus the extra macOS runner minutes for Swift analysis as a separate line.
The second cost line was runner time. The iOS analysis estimate was based on 167 repositories, but most iOS work happened in about twenty of them, so Leocadie expected most of the extra minutes to come from those. She proposed reviewing the actual usage four weeks after the iOS wave, with the option of moving the weekly scan to a lower-traffic day if queues grew.
The risk register
| Risk | Likelihood | Mitigation |
|---|---|---|
| Gate blocks a release | Low with the evaluate period | New alerts only; delegated dismissal with a revisit date; one-working-day approvals |
| iOS analysis costs exceed forecast | Medium | Trigger choices, path filters, a separate budget line, review four weeks after the wave |
| Alert flood discourages Driftline teams | Medium | Two weeks of triage before gates; campaigns limited to one rule at a time |
| Mobile scanner SARIF paths do not match the repository | Medium | Test in skerry-sandbox first; fix path mapping before the release workflows upload |
| Driftline's security engineer becomes a bottleneck again | High without action | Champions in every team; Skerry app security shares triage |
| Contractors dismiss alerts to finish work | Low | Delegated dismissal in restricted repositories; monthly dismissal review |
What Priya took back to Tidewater
At the end of the last session, Marisol asked Priya the question she had asked in MSBA-290: what would she take back to a company of eighteen people on the Team plan? Priya's answer was three things. First, code scanning on TrailCheck had already shown that eleven alerts with two real problems was a manageable load if someone read them every week, which she and Dmitri now did in turn. Second, Tidewater's private repositories could have code scanning through Code Security on the Team plan, and the cost for a small number of committers was something she could put in front of Dmitri with numbers. Third, the habits mattered more than the tools: read alerts, fix the shared cause, keep a record of dismissals, and gate only what has been triaged.
Freya closed the series by returning to the question she had asked in the first session: where does a vulnerability come from? It comes from code someone wrote, usually under time pressure, without seeing the problem. The tools in this course make the problem visible at the moment it is written, propose a fix and organize the rest. The program is what makes sure someone looks.
Common mistakes
MistakeApplying one setup choice to every acquired repository.
InsteadChoose default or advanced setup per language and build, wave by wave.
MistakeTurning on merge gates as soon as repositories migrate.
InsteadAnalyze and triage first, run the gate in evaluate mode, then enforce.
MistakeKeeping third-party scanner results in separate reports.
InsteadUpload them as SARIF so they share alerts, triage and campaigns.
MistakeEstimating cost from head count alone.
InsteadCount active committers to private repositories with the product enabled, once each, and add runner time.
Summary and key terms
- A software company's code is its product, so code security covers what ships to customers.
- Code scanning coverage can follow migration waves, with configurations attached through custom properties.
- Setup choices depend on language and build: default setup where possible, advanced setup where builds or costs require it.
- Third-party scanners belong in GitHub through SARIF uploads with distinct categories.
- Triage comes before gates, and gates start in evaluate mode.
- Champions and shared roles keep a small security team from becoming a bottleneck.
- Cost planning counts active committers once and adds runner time for analysis.
- Migration wave
- A group of repositories moved together in a planned window.
- Release train
- A fixed release schedule that ships whatever is ready on each date.
- Active committer
- A person who committed to a repository with the product enabled in the last 90 days; the basis for billing.
- Coverage
- The share of in-scope repositories with a successful, current analysis.
- Risk register
- A list of risks with their likelihood and planned mitigations.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Why did the iOS wave use advanced setup?
Show answer
Swift analysis needs a build, which runs only on macOS for Driftline's code; advanced setup lets the team control triggers and runner cost.
How did the plan protect the release trains from the merge gate?
Show answer
The gate applies to new alerts only, runs in evaluate mode first, and urgent cases use delegated dismissal rather than bypass.
Why do Driftline's public repositories not add to Code Security cost?
Show answer
Code scanning on public repositories carries no charge.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.