Home / How It Works

Failing controls fixed through pull requests you approve

When a SOC 2 control fails in AWS or GitHub, ZeroTB opens a pull request against the code or configuration that sets it. Nothing changes until one of your engineers reviews and merges it, and ZeroTB rechecks the deployed setting before it closes the gap.

Updated November 25, 2026

Compliance as code, or policy as code, turns requirements into rules software can check. ZeroTB takes the next step: a failing check becomes a pull request, and the result is checked again after merge.

Alerts, automatic fixes or a pull request

ApproachWhat happens when a control failsWho approves the changeWho checks that it held
Alert onlyA dashboard turns red or a ticket opensNo change is proposedWhoever picks up the ticket
Automatic fixA script changes the live resourceNobody, or a blanket rule set up in advanceThe same script, if anyone
Pull request with approval (ZeroTB)A pull request changes the code that sets the resourceAn engineer, in your normal reviewZeroTB rechecks the deployed setting, then signs the record

Automatic fixes are fast, but they change production outside your change process, which can itself break SOC 2 CC8.1. A pull request keeps the fix inside the same review, CI and merge route as any other change.

From failing check to merged pull request

1. Check

ZeroTB checks each approved commitment daily against AWS and GitHub. A finding shows the clause, the observed setting and why it fails.

2. Owner

The gap gets an owner and a response window.

3. Pull request

ZeroTB opens a pull request against the infrastructure code or repository configuration that controls the setting.

4. Your review

Your CI runs as usual. An engineer approves and merges, or asks for changes.

5. Recheck

After deployment, ZeroTB reads the live setting. The gap closes only when the requirement holds. AI cannot close it independently.

6. Record

The signed Verified Control Record keeps the commitment, before and after state, the pull request, the approval and the recheck.

What a pull request fix looks like

Failing control. A new repository ships to production without the required review that your change-management policy promises (SOC 2 CC8.1).

Pull request. It restores the review requirement in the configuration that sets the repository's production branch rules. Your engineers see the change before anything happens.

After merge. ZeroTB reads the repository's branch rules again, confirms the review requirement is active, and adds the result to the record your auditor can inspect.

When a pull request isn't the right route

Some fixes have no code to change, such as an Okta account that kept access after a departure. For those, ZeroTB prepares a runbook for your administrator, or uses a direct API action if your team has opted in. Direct API actions are opt-in and reversible, and limited by policy to named systems and resources.

Questions to ask any compliance-as-code tool

Pull requests or alerts? Does it open pull requests, or only raise alerts?

Which files? Does it change your infrastructure code, your repository settings or the live resource?

Approval first? Can it change anything before an engineer approves?

Recheck after merge? Does it check the deployed state after merge, or only the code?

Evidence? What does your auditor get for the fix?

Who this fits

US software, AI, fintech and healthtech companies with 25 to 250 people, past their first SOC 2, ISO 27001 or HIPAA audit, whose engineers already work through pull requests. Related: GRC engineering and read-only access.

FAQ

Does ZeroTB change anything without approval?

Material changes arrive as pull requests your engineers merge. Direct API actions happen only if your team opts in, and they are reversible.

What access does ZeroTB need to open pull requests?

It starts read-only. Write access is scoped per action class and revocable, so you can allow pull requests on chosen repositories and nothing else.

Which systems does it cover?

GitHub, AWS, Google Workspace and Okta, plus identity providers and endpoints. Pull requests are the usual route for AWS and GitHub.

What does our auditor see?

The signed Verified Control Record for each fix, which your auditor can inspect directly in ZeroTB.

Start with the Pilot

In the eight-week Pilot, we map up to 25 commitments from your report and take two real gaps through verified restoration.