Linear
Linear Integration
Pensar Console integrates with Linear to push security findings into your Linear workspace as issues and keep their status in sync. The integration uses a workspace-level OAuth 2.0 app — you authorize Pensar once, and there are no personal API keys to create or rotate.
Linear issues created by Pensar are attributed to the Pensar app, not to the person who connected the integration. The connection is approved by a Linear admin during the OAuth consent and is shared by everyone in your Pensar workspace.
Prerequisites
Before connecting Linear, ensure you have:
- A Linear workspace where you can approve installing an OAuth application (this requires a Linear admin)
- Admin or owner access to the Pensar Console workspace you want to connect
Connecting Linear
- Navigate to Settings → Integrations → Issue tracking in your Pensar Console workspace
- Find the Issue sync card and locate the Linear section
- Click Connect Linear
- You’ll be redirected to Linear’s OAuth consent screen — a Linear admin reviews the requested access and approves the app for your workspace
- You’ll be automatically redirected back to Pensar Console with Linear connected
Once connected, the Linear section shows the connected organization.
Permissions
When you authorize Pensar, the OAuth flow requests the following scopes:
What Gets Synced
Once connected and enabled, Pensar files each matching finding as a Linear issue in the routed team:
- The issue title is prefixed with
[Pensar Security] - The description includes the severity, affected location, CWE classification, and a direct link back to the finding in the Pensar Console
- The finding’s severity maps to a Linear priority:
Issues are created as the Pensar app, so they’re clearly attributable and don’t consume a Linear seat.
Routing Findings to Teams
Pensar routes findings to Linear teams with a workspace default plus optional per-repository overrides.
Default Team
- In the Linear section, set the Default team
- This is the fallback team Pensar files into for any repository without an override, and for findings that aren’t tied to a specific repository
Per-Repository Overrides
Each repository can override the default routing:
Select a team before enabling sync for a repository. Repositories without an override inherit the workspace default.
Backfilling Existing Findings
Turning on sync only affects findings discovered from that point on. To file findings you already have, use Sync existing findings in the Issue sync card. Pensar files every open finding that meets the routing and severity rules, skipping any that already has a linked Linear issue.
Two-Way Status Sync
Pensar to Linear
When a finding’s status changes in Pensar, the linked issue is moved to a workflow state of the matching type:
Linear to Pensar
Status changes made in Linear flow back automatically through Linear’s app-level webhook. Pensar’s Linear app is configured with a single webhook that Linear sends for every workspace that authorized the app, so there is no per-workspace setup and no extra scope required:
Moving an issue to a canceled state marks the finding a false positive rather than closing it as fixed. Moving a completed issue back to an active state reopens the finding.
Inbound reflection can be turned off per provider with Reflect status changes from Linear, in the Linear section. With it off, Pensar remains the source of truth: findings still sync outward to Linear, but changes made in Linear are ignored.
Disconnecting Linear
To remove the Linear integration:
- Navigate to Settings → Integrations → Issue tracking
- Find the Linear section in the Issue sync card
- Click Disconnect
Disconnecting revokes Pensar’s access token for your Linear workspace.
Disconnecting Linear stops Pensar from filing new findings as Linear issues and ends two-way status sync. Existing Linear issues are left in place.
Troubleshooting
Connection Failed
If the OAuth authorization fails:
- Ensure you’re signed in to the correct Linear workspace
- Confirm a Linear admin approved the app during consent
- Verify you have admin or owner access to the Pensar Console workspace
- Try the Connect Linear flow again from Settings → Integrations → Issue tracking
Issues Not Being Created
If findings aren’t appearing in Linear:
- Confirm a Default team is set, or that the repository has a team override
- Check that Sync to Linear is enabled for the repository
- Verify the finding’s severity meets the repository’s Severity Filter
Status Changes Not Syncing
If moving a Linear issue to done doesn’t resolve the Pensar finding:
- Confirm the issue was originally filed by Pensar — status sync only applies to synced findings
- Check that Reflect status changes from Linear is enabled
- Confirm the state you moved to is of type completed, not a custom active state
Need Help?
If you encounter issues setting up your Linear integration, please contact our support team at team@pensar.dev.