Click to fix is in early access. It’s only available to organisations that Oplane has turned it on for. If you don’t see the settings below, contact your Oplane representative.
What the video shows
What the video shows
The video follows click to fix on an example pull request, PR #14 “Add admin cache purge endpoint”.
- The Oplane Security Review comment on the pull request lists five security requirements, and three of them need attention. The video clicks Fix with Oplane under the table.
- The fix page opens. Two requirements have a suggested fix and are selected: Constant-Time Comparison for Admin API Key Validation (high) and Sensitive Data Exposure Prevention in Admin Config Endpoint (critical). Network Access Restriction for Admin Endpoints needs a manual fix. The diff for the first fix adds a constant-time comparison for the admin API key.
- The video clicks Implement all (2 fixes). Oplane prepares the fixes, applies the patches, verifies them, commits, and pushes.
- The result shows both fixes applied and says that a follow-up review is now running. The video clicks View commit and ends on “Fixed by Oplane”.
Turn on suggested fixes
Suggested fixes are off by default. You turn them on per repository in workspace settings, so you need to be a workspace owner or an org admin. See Roles and permissions.1
Open workspace settings
Open the workspace connected to the repository and go to its settings.
2
Find the repository
Find the linked repository and make sure PR/MR analysis is enabled.
3
Choose a fix level
Under Suggest fixes for findings, select Manual. Oplane then generates a fix for each unresolved finding it can fix automatically, and nothing gets committed until you apply it.
oplane review on it.
If your organisation also has autofix turned on, the dropdown has an Autofix option. With Autofix, Oplane commits every suggested fix automatically without anyone clicking Implement.
Open the fixes from your PR or MR
When suggested fixes are turned on and at least one requirement is unresolved, the Oplane Security Review comment on the PR or MR has a Fix with Oplane button. The button is there from the first review comment, even while Oplane is still generating the fixes. Click Fix with Oplane to open the fix page for that threat model in Oplane. The page header shows the PR or MR title, which links back to the PR or MR. If you click the button before the fixes are ready, the fix page shows a Review in progress notice. When the review finishes, the page refreshes on its own and shows the new fixes, already selected. You don’t need to reload the page.
The Fix with Oplane button at the bottom of the Oplane Security Review comment.
Review the suggested fixes
The fix page lists the PR or MR requirements in three groups in the sidebar:
Select a requirement to see its ID (such as
OPLANE_REQ-…) under the title, its rationale, the affected files, and a diff of the suggested change. Switch between Split and Unified to change how the diff is shown.

The fix page for a pull request, with a suggested fix selected and its diff in split view.
If a new review starts on the PR or MR while you’re on the fix page, Oplane pauses the page until the review finishes. That way you always apply fixes against the latest findings.
Apply the fixes
Click Implement all (or Implement if you unchecked some fixes). The button shows how many fixes it will apply. Oplane then shows the progress while it prepares the changes, applies them, and commits them. The fixes are committed together in one commit on the PR or MR source branch. If any of them can’t be applied, Oplane commits nothing. The Oplane app makes the commit, not your own Git account. Oplane still records who clicked Implement in its own audit log. When the job is done, you see a list of the applied fixes and a View commit button. The new commit triggers a follow-up review, which checks that the fixes work and didn’t introduce new issues. If you leave the page while the job is running, you can come back to it later. The fix page shows a banner with View progress or View result until a newer review replaces the result.When a fix can’t be applied
If Oplane can’t commit the fixes, the result page tells you why:Give feedback
Click to fix is in early access, so Oplane wants to hear what works and what doesn’t. Send your feedback to your Oplane contact, and include a link to the PR or MR if you can.Read next
- Respond to requirements, for other ways to resolve a requirement.
- Merge gating, to block merges until requirements are resolved.