MSBA-361 · Lesson 7 of 12 · 18 min
Security campaigns
▶ Video coming soon A video version of this lesson is on the way.
Filtering the organization's code scanning alerts by rule had shown the same story in every group: a handful of rules accounted for most of the serious alerts. The biggest single cluster was SQL injection in the reporting services that fed store managers' dashboards, 186 alerts across 31 repositories owned by nine teams. Fixing them one ticket at a time had been tried in 2025, with spreadsheets and reminders, and had stalled at about a third. The seventh session introduced the tool Skerry would use instead: security campaigns.
What a security campaign is
A security campaign is a coordinated effort to fix a selected group of alerts across many repositories by a target date. It is created from security overview, from a filtered set of alerts, and gives developers a single place to see the alerts they are asked to fix, why they matter, who to ask for help and when the work is due. Campaigns became generally available for code scanning alerts in April 2025. GitHub has since extended them to secret scanning alerts, which its documentation still describes as a preview, so Skerry used campaigns mainly for code scanning.
Campaigns address the two reasons security debt tends not to shrink. First, developers rarely know which of many alerts the security team actually cares about this quarter; a campaign names them. Second, fixing alerts one by one ignores the fact that they share a cause; a campaign groups alerts that share a fix, so that a developer who learns the fix once can apply it everywhere.
Who can run campaigns
Campaigns are available to organizations with GitHub Code Security on Enterprise Cloud and, according to GitHub's documentation, on GitHub Team with Secret Protection or Code Security. Organization owners and security managers create and manage them. Each campaign has a campaign contact, a person or team that developers can ask about the alerts. Anyone who can see a repository's alert list can see that repository's part of a campaign.
| Campaign element | What it is for | Skerry's choice for the SQL injection campaign |
|---|---|---|
| Name | Recognizable in notifications and lists | Q4 2026: SQL injection in reporting services |
| Description | Why this matters and how to fix it | The risk to store managers' data, the shared fix and a link to the internal guide |
| Alerts | The filtered set the campaign covers | 186 CodeQL alerts for the SQL injection rule in repositories with owning-team set to a reporting team |
| Due date | When the work should be finished | December 18, 2026 |
| Contact | Who developers ask for help | Seraphine, with the app security team as backup |
| Tracking issues | Optional issues in each repository linking to its alerts | Created, so teams could plan the work in their own boards |
Templates and choosing alerts
GitHub provides campaign templates that select groups of closely related alerts, such as the most serious alerts in a common vulnerability class, so that developers can apply what they learn from one fix to others. Templates are a good starting point; security teams can also build a campaign from any filter they can express in the alert list.
Choosing which alerts to put in a campaign is the most important decision. Seraphine had three tests.
| Test | Why it matters |
|---|---|
| Do the alerts share a cause and a fix? | A shared fix makes the work learnable and fast |
| Is the risk worth interrupting planned work? | Campaigns compete with features; they must be justified |
| Can the affected teams finish by the due date? | Campaigns that miss their date train teams to ignore the next one |
The SQL injection alerts passed all three. They shared one cause, queries built from strings in an old reporting helper, and one fix, the parameterized query helper the commerce team had already written. The risk was high because the dashboards were reachable from every store. And the nine teams together had about six weeks of normal capacity for maintenance work before the holiday code freeze on December 18.
What developers see
When a campaign is published, developers with write access to the affected repositories are notified. In each repository they see the campaign's alerts, its description, the due date and the contact. Code scanning alerts in a campaign have Copilot Autofix suggestions generated automatically, so many developers' first view of an alert already included a proposed fix. Where agentic autofix is enabled, campaign alerts can be assigned to Copilot in batches of up to 25, which produces one draft pull request per assignment.
Teodric's team owned six of the 31 repositories. He wrote the fix for the first repository by hand using the shared helper, then used Autofix suggestions for the rest, editing each to use the helper rather than raw parameters. The six repositories were clear in eight working days.
Tracking progress
The campaign view in security overview shows how many alerts remain open, how many were fixed or dismissed, and progress by repository. The tracking issues created in each repository gave teams something to put on their own boards, and the issues close as their alerts are resolved. Campaign data is also available through the REST API, which Skerry's weekly scorecard used.
By November 20, 112 of the 186 alerts were fixed and 74 remained. Three repositories had not started; all belonged to one team that had lost two developers in October. Freya's response was the one campaigns are meant to encourage: rather than escalating, she offered a day of Seraphine's time and agreed a new date for that team's alerts in January, recorded in the campaign description.
| Signal in the campaign view | What it might mean | Response |
|---|---|---|
| Many alerts fixed early, a long tail later | Normal; the shared fix spreads | Offer help to the tail |
| Several repositories with no activity | Teams overloaded or unaware | Talk to the team leads; adjust scope or date |
| Many dismissals | Rule noisy in some code, or teams avoiding work | Review dismissals; tune queries if justified |
| Fixes that reopen | The fix did not cover all paths | Share a better pattern; review with the contact |
Bulk management outside campaigns
Not every group of alerts needs a campaign. Security overview's bulk actions can dismiss many alerts at once with one reason, for example alerts from a rule that the team decided did not apply to a class of internal tools, or assign many alerts to an owner. The GH-500 security operations domain covers both: campaign-based remediation for work that needs developers, and bulk management with documented reasons for decisions the security team can make itself.
Bulk dismissal must be used carefully because it removes alerts from every metric at once. Skerry required a linked decision record in the governance repository for any bulk dismissal of more than twenty alerts, and Ottoline planned to sample them in January.
Planning the next campaigns
With the first campaign on track, the team drafted two for January 2027, written as plans rather than published campaigns: one for cross-site scripting in the store portals, about 140 alerts in 22 repositories, and one for path traversal in export jobs, using the allow-list pattern from lesson 4. The XML parser upgrade from MSBA-360 had run as a dependency effort tracked through Dependabot alerts; Freya noted that if campaigns grew support for supply chain alerts, that kind of effort could move into the same tool.
Worked problem
Designing a campaign
Security overview shows 420 medium-severity alerts for a logging rule across 160 repositories, plus 60 high-severity alerts for unsafe deserialization in 12 repositories. Teams have three weeks before a freeze. Which should become a campaign now?
Show solution
- Check shared cause and fix: the deserialization alerts share one library call and one safe replacement; the logging alerts vary.
- Check risk: deserialization alerts are high and in services reachable from the internet.
- Check capacity: 60 alerts in 12 repositories is achievable in three weeks; 420 in 160 is not.
- Plan the logging alerts for later, perhaps split by framework.
Answer: Run a campaign for the 60 unsafe deserialization alerts now, with a due date before the freeze, and plan the logging alerts as a later, smaller set of campaigns.
Writing the campaign description
The description is what developers read first, and it decides whether the campaign feels like a request from a colleague or an order from a distant team. Seraphine's description for the SQL injection campaign had four short parts, and the team reused the structure for later campaigns.
| Part | What Seraphine wrote, in short |
|---|---|
| Why this matters | These reports are reachable from every store; a crafted request could read other stores' data |
| How to fix it | Replace the old reporting helper's string queries with the shared parameterized query helper; one example pull request linked |
| What good looks like | The alert closes as fixed after the next analysis; tests for the report still pass |
| Where to get help | Seraphine, office hours on Tuesdays and Thursdays, and the campaign channel |
The example pull request was the most useful part. It showed a real fix in Teodric's repository, with tests, reviewed and merged. Developers in other teams copied its approach rather than reading a guide, and several said afterwards that the link saved them more time than the Autofix suggestions.
Campaigns for secret scanning alerts
GitHub has extended campaigns to secret scanning alerts. Skerry had not used them yet, because the secret scanning backlog from MSBA-360 was being worked through by the alert owners and the delegated bypass process. Freya noted two differences for the future. A leaked secret is fixed by revoking and rotating it, not by changing code, so the description needs to point to the owner of the credential, not to a code pattern. And because secret scanning campaigns were still described in the documentation as a preview when the team checked, she wanted to see them generally available before relying on them for audit evidence.
Campaigns and the exam
The GH-500 security operations domain expects candidates to know how to plan and track campaign-based remediation, how campaigns relate to security overview filters, and when bulk alert management is more appropriate. Priya made a short list of facts she wanted to remember: campaigns start from filtered alerts in security overview; owners and security managers create them; each has a contact and a due date; developers with write access are notified; code scanning alerts in a campaign get Autofix suggestions automatically; and progress is tracked in the campaign view and through the API.
She also noted what campaigns do not do. They do not create new alerts, change queries, assign repository permissions or block merges. They organize work on alerts that already exist, which is why the tools from the earlier lessons have to be in place first.
When a campaign misses its date
Not every campaign finishes on time, and how the security team responds decides whether the next campaign is taken seriously. Freya's rule was to treat a missed date as information, not failure. Before the due date, Seraphine compared progress with the burn-down and contacted any team more than a week behind. If a team could not finish, the remaining alerts were either moved to a new, dated campaign with the team's agreement, or accepted as a documented risk by the team lead and Freya together. What the team never did was quietly extend the date, because a date that moves without a record teaches everyone that dates do not matter. The January date agreed with the understaffed team was recorded in the campaign description for exactly that reason.
Common mistakes
MistakePutting every open alert into one large campaign.
InsteadChoose alerts that share a cause and fix and can be finished by the due date.
MistakePublishing a campaign without a clear description and contact.
InsteadExplain the risk, show the fix and name who to ask.
MistakeEscalating teams that fall behind without asking why.
InsteadUse campaign progress to start a conversation and offer help.
MistakeBulk dismissing alerts without a record.
InsteadDocument the reason and keep a decision record for audit.
Summary and key terms
- A security campaign coordinates fixing a selected group of alerts across repositories by a due date.
- Campaigns are created by organization owners and security managers from filtered alert lists in security overview.
- Each campaign has a name, description, due date, contact and optionally tracking issues.
- Developers are notified and see campaign alerts with Copilot Autofix suggestions; agentic autofix can take batches of up to 25.
- Good campaigns group alerts that share a cause and a fix and fit the teams' capacity.
- Progress is tracked in security overview and through the API.
- Bulk actions handle decisions the security team can make itself, with documented reasons.
- Security campaign
- A coordinated effort to fix a selected set of alerts across repositories by a target date.
- Campaign contact
- The person or team developers ask about a campaign's alerts.
- Campaign template
- A predefined selection of closely related alerts suitable for a campaign.
- Tracking issue
- An issue created in a repository to track that repository's campaign alerts.
- Security debt
- The accumulated backlog of known but unfixed security problems.
- Bulk dismissal
- Dismissing many alerts at once with a shared reason.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Who can create security campaigns?
Show answer
Organization owners and security managers.
What do developers see first on many campaign alerts?
Show answer
A Copilot Autofix suggestion generated automatically.
Name the three tests Skerry used to choose campaign alerts.
Show answer
A shared cause and fix, risk worth the interruption, and capacity to finish by the due date.
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.