Compliance Is a Pipeline Problem: SOC 2 Evidence From CI/CD

The automation that produces audit evidence also keeps production stable, incidents short and due diligence boring, and attackers have noticed.
Last updated: October 2026
Compliance stops being a scramble when the evidence falls out of how you already ship: infrastructure defined in code, every change through a reviewed pull request, pipeline gates, scanning, logs you keep and access reviews on a schedule. That same pipeline makes outages shorter, onboarding faster and due diligence boring. It's also a target now.
I used to call this compliance work. Lately I call it pipeline work. That sounds like a small change in language, but it represents a major shift in who does the work, when it happens and what you can prove afterward.
A quick honesty note first, because this is my own firm's practice too. NullorNaN doesn't hold a SOC 2 report, and no audit has been started or scheduled. In the labels we use publicly, that's "NIST CSF 2.0: Self-Assessed, Active", "SOC 2 Readiness: In Progress", "PCI DSS SAQ A: In Progress", "CSA CAIQ: In Progress" and "WCAG 2.2 AA: In Progress". The current status of each piece is on our trust page.
For years, compliance ran on a calendar. An audit or a big customer questionnaire was coming, and the next few weeks were archaeology: screenshots of admin consoles, a user list exported by hand, a spreadsheet of production changes rebuilt from memory and chat history. A SOC 2 Type I made that survivable, because it looks at whether controls are designed properly at a single point in time. A Type II is where the scramble falls apart, because it looks at whether those controls actually operated over a period of months, and you can't screenshot your way backward through six months. The assumption was that evidence is something you gather. That assumption is getting weaker. More and more, evidence is something your systems emit on their own, every time someone ships.
Two stories from this year show both sides of that. In October, GitGuardian reported that the GhostAction campaign is back. Using stolen developer credentials, the attacker pushed malicious workflows into public repositories under the victims' own identities, with names like "Github Actions Security" and "Security Audit", and between October 8 and 12 the campaign targeted more than 30,000 repositories and tried to pull 3,174 secrets out of CI. Back in March, CrowdStrike traced credential theft on CI runners to a compromised trivy-action, the GitHub Action for a popular open-source vulnerability scanner. 76 of its 77 release tags had been quietly repointed to a credential stealer that ran before the real scan, so jobs still finished green. The lesson is a little uncomfortable. The pipeline is now the control plane for your security and compliance program, and it's a control plane attackers would very much like to own. One disguised itself as a security audit. The other was the scanner.
Start with change management, because it's the control everything else leans on. SOC 2's change management criterion, CC8.1, says the organization "authorizes, designs, develops or acquires, configures, documents, tests, approves, and implements changes to infrastructure, data, software, and procedures." That list describes a pull request. The linked issue is the authorization, the diff and description are the design and documentation, the CI run is the test, the review is the approval, and the merge and deploy log are the implementation, all timestamped and tied to a name. The catch is that a PR process is only a control if the platform enforces it. If an admin can push straight to the main branch, or merge their own change without a review, you have a habit, not a control, and an auditor sampling changes over a Type II period will find the one week the habit slipped. At NullorNaN every change goes through a PR and I approve every merge. I'm still the only human reviewer, which is a gap we're open about.
Infrastructure as code extends that same process to the servers, networks and permissions underneath the app. If the infrastructure is defined in the repository, a firewall change gets reviewed like a code change, and "what did production look like on March 3rd" becomes a question you answer by reading history. The failure mode is drift. Someone fixes something by hand in a console at 2am, the code and reality quietly disagree, and the next deploy either undoes the fix or trips over it. The answer is a scheduled job that compares the code against live state and raises an alert when they differ. I'm wary of auto-revert, because it will happily roll back the emergency fix someone made mid-incident. I'd rather it alerts, and a person decides whether the hand change gets written into code or rolled back. Emergency access should exist, but logged, time-limited and reviewed afterward.
Policy as code is where written rules turn into tests. "No storage open to the public internet", "encryption on by default" and "no permissions that grant everything to everyone" stop being sentences in a PDF and become checks that fail the build. Add secret scanning before commits land and again in CI, plus dependency scanning against committed lockfiles. The tradeoff is noise. A gate that fails for bad reasons trains everyone to click past it, and a gate everyone clicks past is worse than none, because it looks like a control on paper. Every exception should be a reviewed change with a reason, an owner and an expiry date.
Then harden the pipeline itself, since that's where both of this year's stories landed. Pin third-party steps to a full commit hash rather than a version tag, because, as CrowdStrike put it, tags are pointers, not guarantees. GitHub's own guidance this spring says the same, and it pushes short-lived OpenID Connect tokens over long-lived secrets stored in CI. Give each job the narrowest permissions it needs. When a secret leaks, revoke and rotate it, and then go find the credential that let the attacker in, because as GitGuardian points out, rotating what was stolen doesn't close the door that let it out. Watch build runners like production hosts, because they hold production's keys.
Logging is the piece that pays twice. SOC 2's monitoring criterion, CC7.2, asks you to watch system components for anomalies and analyze whether they're security events. The logs an auditor samples are the same logs you'll want at 2am when you're trying to figure out what changed, which is usually the first question when something breaks. That only works if logs are retained long enough, timestamps agree across systems, and the people being logged can't quietly delete the record. And every alert needs an owner, or it's just expensive noise.
Access reviews round it out. A script can export who has access to what, every month, and compare it against who actually works with you. It can't decide whether that contractor from the spring still needs production access. A person has to look at it, decide, and leave a record of the decision. When access is managed in code, onboarding is a PR that adds someone and offboarding is a PR that removes them, and the review is mostly reading a diff.
Imagine a twelve-person software company that gets its first enterprise security questionnaire on a Tuesday, with a deal riding on it. In the calendar version, the CTO loses two weeks to screenshots, and a few answers say "yes" about things that are really "mostly." In the pipeline version, most answers point at something that already exists: branch protection settings, a month of merged PRs with reviews, the drift job's history, last quarter's access review, the incident runbook and the log retention config. The same week, a deploy breaks login. On-call sees exactly which change shipped, reverts it through the same PR process, and the postmortem writes itself from the timeline. And when an investor's diligence team shows up with its own spreadsheet, the answers are the ones you already gave the customer, because they come from the same evidence. That's the "and more" part. Compliance is one thing this automation produces. Reliability, faster incident response, easier onboarding and calmer due diligence are the others.
The cheapest control is the one you never need. Our card payments go through hosted checkout pages, so card data never touches our servers, and that's why PCI DSS SAQ A is the questionnaire we're working toward. Even that path has fine print now. The January 2025 SAQ A revision dropped two payment page script requirements from the questionnaire but added an eligibility check: merchants have to confirm their site isn't susceptible to script attacks that could affect their e-commerce systems. PCI SSC later clarified that the check applies to pages that embed the processor's payment form, not to plain redirects. Shrinking scope still beats building controls, as long as you know which kind of shrinking you did.
So where do AI agents fit? Inside the pipeline, as contributors held to the same gates as everyone else, and never as the gate. An assessor agent scored every one of the 22 categories in our NIST CSF 2.0 self-assessment (the framework breaks them into 106 subcategories), and every score had to cite evidence: a file, a setting or a merged policy. No evidence, no score. Agents map each gap across NIST CSF, the SOC 2 Trust Services Criteria, the CAIQ (the Cloud Security Alliance's questionnaire, built on its Cloud Controls Matrix) and PCI DSS, so one fix is tracked against all four at once. They draft CAIQ answers from evidence, and an answer flips from No to Yes when the evidence merges, not when someone promises it's coming. A claims checker reviews our public copy, which is how an early draft badge that read "Passed" turned into "NIST CSF 2.0: Self-Assessed, Active" before it ever reached the site. Nobody passes a self-assessment. You do it honestly or you don't.
The structure matters more than the model. The assessor never changes code. It writes a request, a separate coordinator agent opens a PR, QA and copy agents review where their work applies, and I approve the merge. No single agent can find a problem, fix it and declare it fixed. That separation is a useful check, though it doesn't replace a second human reviewer. Agents also can't ship to production on their own, because a prompt is not an access control. If an agent can push to production on its own with secrets nobody reviews, you've built the exact opening GhostAction uses and given it a friendly name.
What stays human is the stuff with consequences. I decide whether evidence is real, whether a gap gets fixed, deferred or accepted, and I write that decision down in my own words. I decide what merges, what we tell buyers and what we publish. Signing a PCI self-assessment questionnaire is a person's signature. And a SOC 2 report comes from an independent CPA firm, where management makes its own assertion about its controls and the auditor gives an opinion. AI can get you ready. It can't audit you.
None of this needs a big team. It does need someone who owns it. Through Null CXO, our fractional executives bring this same playbook to clients: evidence as a byproduct, gates that hold, and a human on the merge button. It's less exciting than a badge. It's also a lot harder to fake.
The current status of each piece is on our trust page, and questions about our security can go to cybersec@nullornan.com.