About security campaigns

You can fix security alerts at scale by creating security campaigns and collaborating with developers to burn down your security backlog.

Once you have identified security alerts the next step is to identify the most urgent alerts and get them fixed. Security campaigns are a way to group alerts and share them with developers, so you can collaborate to remediate vulnerabilities in the code and any exposed secrets.

Security campaigns in your day-to-day work

You can use security campaigns to support many of your aims as a security leader.

Benefits of using security campaigns

A security campaign has many benefits over other ways of encouraging developers to remediate security alerts. In particular,

You can use one of the templates to select a group of closely related alerts for a campaign. This allows developers to build on the knowledge gained by resolving one alert and use it to fix several more, providing them with an incentive to fix multiple alerts.

In addition, you can use the REST API to create and interact with campaigns more efficiently and at scale. For more information, see REST API endpoints for security campaigns.

Differences between code and secret campaigns

Note

Campaigns for secret scanning alerts are currently in public preview and are subject to change.

The creation workflow is the same for all campaigns, but you will notice a few differences in progress tracking and developer experience.

Property Code Secret
Alerts available for inclusion Default branch only
Repository tracking issues
Developer notifications Requires write access to repository Requires view access to alerts list
Alert assignment May raise permissions
Automatic remediation support GitHub Copilot Autofix

About assigning alerts

You can assign a code scanning or secret scanning alert to any user who has write access for the repository.

If the assignee for a secret scanning alert cannot view the alert list, their permissions are temporarily raised for that alert. Any additional permissions are revoked when they are unassigned from the alert.

GitHub notifies users:

For code scanning, you can also perform some of these operations programmatically using the REST API, such as assigning or unassigning users to alerts, and filtering alerts by assignee. For more information, see REST API endpoints for code scanning in the REST API documentation. Additionally, webhooks are available to notify you when an alert is assigned or an assignment is removed.

If agentic autofix is enabled for a repository, you can select up to 25 code scanning alerts in a security campaign and assign them to Copilot. One assignment starts one agent session and creates one pull request for the selected alerts. See Fixing alerts in a security campaign.

Next steps