Security Guardrail Exceptions: Letting a Blocked PR Through
A blocking security check on a pull request is only as strong as its exception path. Sooner or later a guardrail blocks a change that has to ship: the fix for a vulnerable dependency does not exist yet, the code finding is a false positive, or the release is tonight and the upgrade is next sprint. What happens next decides whether your guardrail program survives.
If there is no sanctioned way through, people find an unsanctioned one. An admin merges past the failing check. Someone flips the guardrail to Warn for the whole organization "for a day". A repository quietly drops out of scope. Each of these gets the pull request merged, and each leaves no record of what was accepted, by whom, or until when.
Security guardrail exceptions are the alternative: a narrow, recorded, time-boxed way to let one finding stop blocking, requested where the developer already is and reviewed by someone accountable. This post covers what a good exception looks like, the trade-offs in how you approve them, and how to keep temporary exceptions from becoming permanent ones.
Why blocking gates need an exception path
Block mode is a promise to developers: this check will stop your merge only for things that matter. Teams that move guardrails from observe to block usually tune them carefully first. Even well-tuned rules meet real cases where blocking is the wrong outcome for this change, today.
- No fix is available. A dependency has a known vulnerability and no patched release works with your runtime yet.
- The fix cannot go in this change. The upgrade is a major version bump that needs its own pull request and its own testing.
- The finding is wrong for this code. A code rule flags a path that is never reached with untrusted input.
- The risk is accepted. The team knows about the finding and has decided, for now, to live with it.
None of these is a reason to weaken the guardrail itself. The rule is still right for every other pull request. What you need is a way to say "not this finding, not right now" without touching the policy.
What the workarounds cost
The common workarounds all fail the same way: they are broader than the problem and they leave no trail.
- Admin bypass skips every check on the pull request, not just the one finding. Nobody outside the merge sees the decision.
- Turning the guardrail off or to warn stops it from blocking anything, in every repository it covers, until someone remembers to turn it back.
- Removing a repository from scope is invisible to the security team until the next audit.
- Waiting has a cost too. Developers learn that the guardrail is a wall with no door, and the pressure to weaken it grows.
Over time, an exception path nobody can use produces more exceptions, not fewer. They are just unrecorded.
What good security guardrail exceptions look like
A good exception has five properties. Use them as a test for any exception process, whatever tool runs it.
Scoped to one finding
The exception covers a specific finding, not the guardrail, not the pull request, and not the repository. A vulnerability exception names the CVE and the package. A code exception names the rule and the files. Everything else the guardrail checks still blocks.
Scope has a second dimension: where the exception applies. An exception for a finding in one repository should not silently cover the same finding in another repository with different exposure.
Requested where the work happens
If asking for an exception means filing a ticket in another system and waiting for a meeting, developers will pick the bypass. The request belongs in the pull request, next to the violation, in a form a developer can write in thirty seconds. The request should carry a reason category and a written justification, so the reviewer is not starting from zero.
Approved by someone accountable
The person who wants the merge should not be the only one deciding the risk is acceptable. That does not always mean blocking until approval (more on that trade-off below), but it does mean a named reviewer looks at every exception and can reject it.
Time-boxed and re-evaluated
An exception with no end date is a policy change nobody approved. Every exception should expire, and when it does, the check should run its logic again. If the finding is still there, it blocks again. That is the difference between "we accepted this for two weeks while the upgrade lands" and "we stopped looking".
Turned into a lasting decision or a piece of work
A temporary exception buys time. Something has to happen with that time. Either the finding gets fixed, which means a ticket with an owner, or the organization makes a lasting risk decision on the finding, recorded where the rest of its risk decisions live. An exception that expires with neither is a sign the process is not working.
Review before or review after: choosing an approval model
The biggest design choice in an exception process is when the review happens. There are two honest answers, and both are defensible.
- Approval required. The pull request stays blocked until a reviewer approves the exception. This gives the security team a real gate. The cost is latency: if reviewers are slow, or in another time zone, developers wait.
- Review after. The exception applies as soon as the developer requests it, and a reviewer looks at it afterwards. Developers are never stuck. The cost is that a bad exception can let a change merge before anyone objects.
Review after sounds lax, but compare it to what it replaces. With an admin bypass, nobody reviews anything. With review after, every exception is recorded with a reason and a justification, a reviewer sees it, and a rejection puts the block back on any pull request still open. For many teams that is a large step up in control, with no added friction.
A reasonable pattern is to start with review after while you learn what developers ask for, then move to approval required if reviews turn up too many exceptions you would have rejected. Either way, keep the default duration short. A week is enough time to land most fixes. Longer exceptions should be a deliberate choice by the reviewer, not the default.
Who should be able to ask
Limit requests to people with write access to the repository. They are the people who can merge code there anyway, so the exception path does not hand anyone new power. Someone who cannot push to the repository should not be able to unblock it.
What should never be snoozable
Some findings are not a matter of timing. A dependency known to be compromised or a confirmed indicator of compromise is not something to ship around for a week. Make those findings ineligible for exceptions entirely, so nobody has to make that call under deadline pressure.
Keeping exceptions from turning permanent
The failure mode of every exception process is drift. Exceptions pile up, nobody revisits them, and the guardrail is blocking a fraction of what it appears to. Three practices keep that in check.
- Expiry re-runs the check. When an exception ends, open pull requests that passed because of it should be evaluated again. The finding blocks if it is still there. No manual sweep needed.
- Every exception gets a destination. At review time, decide whether this becomes a ticket (fix it) or a lasting risk decision on the finding (accept it). Push the ticket from the exception record, so the context travels with it.
- Someone reads the list. A weekly look at open and recently expired exceptions, filtered by reason, shows patterns: the same package across repositories, the same rule producing false positives, the same team always asking for more time. Those patterns are policy feedback.
The reason categories matter here. "False positive" points at tuning the rule. "Cannot fix now" points at a fix that needs scheduling. "Exception" means accepted risk, which belongs in a risk register. "More time than the deadline allows" points at remediation capacity. Mixing them into one free-text field throws that signal away.
How snooze requests work in Heeler
Heeler PR guardrails now support snooze requests: a developer whose pull request is blocked by a guardrail finding can ask, from the pull request, for that one finding to stop blocking for a limited time. It works on GitHub, GitLab, Azure DevOps Services and Bitbucket Cloud.
Requesting a snooze
When a guardrail in Block mode fails, the guardrail report on the pull request shows a Snooze line under each blocking violation, with a short reference already filled in. The developer replies on the pull request with the command, a reason code and a justification:
/heeler snooze 3f9a1c2e cannot-fix-now No patched body-parser release supports our Node 14 runtime. Upgrade is tracked in PLAT-412.
The reason codes are false-positive, exception, cannot-fix-now and slo-exception. One comment requests one snooze. Heeler checks that the commenter has write access to the repository and replies on the pull request with the result. A request with no justification, an unknown reason or a reference that matches no blocking finding is refused with the reason, and nothing is recorded.
What a snooze covers
A snooze is a temporary exception for one finding in one repository. A vulnerability is identified by the CVE and the package, a SAST or IaC finding by the rule, the source file and the sink file, and a secret found in the pull request by the rule and the secret value. While the snooze applies, guardrail checks in that repository do not block on that finding, on the requesting pull request and on others with the same finding. The guardrail report lists snoozed findings, who snoozed them, the reason and the expiration. A snooze does not change the finding: its triage state, SLO and risk score stay as they are.
Some findings cannot be snoozed at all: compromised dependency findings, IOC findings, dependency hygiene rules such as license and unmaintained dependencies, Agent Files rules, Repository Secrets rules and SLO rules.
Modes, duration and expiry
Snooze requests are off by default. An administrator sets the mode under Administration > Program > Guardrails: Review After, where the snooze applies at once and Heeler re-evaluates the check from the stored scan results, or Approval Required, where the pull request stays blocked until an administrator approves. The snooze duration is set there too, from 1 to 90 days with a default of 7, and developers cannot choose it. When a snooze ends, Heeler re-evaluates the open pull requests whose check passed because of it, and the finding blocks again if it is still there.
The same page has a PR Check Note, a short note the guardrail report shows under the violations, so developers know whom to ask before they reach for a snooze.
Reviewing and closing the loop
Guardrails > Snooze Requests lists every request with its status, repository, pull request, requester, reason, justification, expiration and linked ticket. An administrator can approve, reject or revoke a snooze, change its expiration, and add a note that the developer sees in Heeler's reply on the pull request. From a request, an administrator can push a ticket to Jira, Linear or GitHub, filled in from the request, or link an existing one.
After the pull request merges, the temporary exception can become a lasting one: Create Risk Override on a vulnerability or code request, or Create Exception on a secret request, on the stored finding the snooze covers. Workflows can trigger on a snooze request and on an approval, to notify a channel or open a ticket automatically.
For more on rolling guardrails out before they block anything, see observe before you enforce.
Checklist: a guardrail exception process you can defend
- Developers can request an exception from the pull request, next to the violation.
- Each request covers one finding, in one repository, never the whole guardrail.
- Each request carries a reason category and a written justification.
- Only people with write access to the repository can request one.
- You have chosen review after or approval required on purpose, and written down why.
- The default duration is short, and longer exceptions are a reviewer's decision.
- Compromised packages and indicators of compromise can never be excepted.
- Expiry re-evaluates the check automatically.
- Every exception ends in a ticket or a lasting risk decision.
- Someone reviews open and expired exceptions on a schedule and feeds patterns back into rule tuning.
- The guardrail report tells developers whom to contact.
FAQ
What is a security guardrail exception?
A security guardrail exception lets one specific finding stop blocking a pull request for a limited time, without changing the guardrail for anything else. It is recorded with a requester, a reason, a justification and an expiration.
Is an exception the same as accepting the risk?
No, a temporary exception is not a risk acceptance. It buys time for a fix or a decision. Accepting the risk for the long term is a separate, lasting decision on the finding, made by someone accountable for risk.
Should exceptions require approval before the merge?
It depends on how fast your reviewers can respond. Approval required gives the strongest control but adds wait time; review after keeps developers moving while still putting every exception in front of a reviewer, who can reject it and put the block back on open pull requests.
How long should a guardrail exception last?
Short by default, about a week, is enough to land most fixes. Longer windows should be deliberate and tied to a ticket that says what will happen before the exception ends.
What should happen when an exception expires?
The check should run again on its own. If the finding is still present, the pull request is blocked again, and the expired exception is a prompt to fix the finding or record a lasting decision.
Guardrails that block without an exception path get bypassed, and guardrails with a loose exception path stop meaning anything. Heeler snooze requests give developers a way through on the record, scoped to one finding, reviewed, time-boxed and re-evaluated on expiry, alongside the rest of your CI/CD security controls. Get a demo


.jpg)
