Secure SDLC in 2026: from scanner findings to engineering outcomes
How to turn SAST, SCA, secrets and CI findings into owned, verified fixes: context, ownership routing, gate design and pipeline hardening.
- Published
- Author
- Next Security Research
- Topics
- Secure SDLC
- CI/CD security
- AppSec program
- Supply chain
- Tested scope
- Method article: no live system tested. Examples use GitHub Actions and generic scanner output formats as documented in November 2026.
Key takeaway
A finding becomes risk reduction only when it carries exposure context, reaches a named owner, and is closed by verification rather than by a status change.
TL;DR
Most engineering organizations that run SAST, SCA, secrets and IaC scanning already have more findings than they can fix. Adding a scanner rarely changes the outcome. What changes it is the path a finding takes after it is produced: whether it carries enough context to be prioritized, whether it reaches a person who owns the code, whether the release gate blocks the right things, and whether “fixed” means someone checked.
This article describes that path as an engineering system, with configuration you can adapt. It applies when you have more than a handful of repositories, more than one scanner, and a pipeline that builds and deploys automatically. If you have three repositories and one team, most of this is overhead, and a weekly triage meeting will do.
The second half covers the pipeline itself as an attack surface. A delivery pipeline that holds deploy credentials and runs third-party code on every pull request is often a shorter route to production than any application bug the scanners report.
Business context and attack surface
Engineering leaders usually feel this problem as friction, not as risk: a security tool that fails builds for issues nobody can explain, a backlog nobody owns, and a quarterly report with a total that never goes down. Security leaders feel it as the opposite: findings they cannot get fixed and cannot rank, and no clear answer when asked whether the last release was safe to ship.
Both are symptoms of the same gap. Scanner output describes code. Risk depends on where that code runs, what it can reach, and who can send it input. A critical SQL injection rule match in an internal batch job with no external input is a different decision from a medium-severity authorization issue on a public payments API. Neither scanner knows the difference.
The delivery path has its own trust boundaries, and each one is a place where an attacker can try to inject code or steal credentials:
- Developer workstation to source control. Commits, branch protection, required reviews, signed commits where you use them.
- Source control to CI runner. Which events trigger workflows, which code the runner checks out, and which secrets and tokens are available to that code.
- CI runner to artifact registry. Who can push images or packages, and whether anything downstream verifies where an artifact came from.
- Registry to deployment. Whether production pulls only artifacts built by your pipeline from reviewed code.
- Third-party code everywhere. Dependencies, base images, CI actions and plugins all run with whatever privileges the stage gives them.
Why scanner output does not turn into fixes
The failure modes repeat across organizations of very different sizes. Each has a specific cause.
No exposure context. A finding records a rule, a file and a line. It does not record whether the service is internet-facing, whether the vulnerable function is reachable from an entry point, or what data the service handles. Without that, severity is the scanner’s generic rating, and engineers learn that “critical” often means nothing.
No owner. Findings land in a security tool that engineers do not open, or in a shared Jira project nobody triages. Repositories outlive teams. A monorepo has twenty owners and the finding names none of them.
Duplicates across tools. The same vulnerable library shows up in SCA, in the container scan of every image that includes it, and in the ASPM view that aggregates both. Teams see three tickets for one upgrade and stop trusting the count.
Gates on totals. A pipeline that fails when the total number of high findings exceeds a threshold punishes the team that touches old code and rewards the team that does not. It also gets bypassed: someone adds an exception, and the exception never expires.
Closure by status change. A ticket moves to “done” when a pull request merges. Nobody rescans, nobody tests the original attack path, and some fraction of fixes do not fix anything.
The pipeline as the attack surface
Application findings dominate dashboards, but the CI system often holds the most powerful credentials in the company: cloud deploy roles, registry push tokens, package publishing keys. Two configuration patterns come up again and again in publicly documented pipeline compromises.
The first is running untrusted pull request code with privileged credentials. In GitHub Actions, the pull_request_target event runs in the context of the base repository and has access to its secrets. If such a workflow checks out the pull request’s head commit and builds it, a contributor’s code runs next to those secrets. GitHub’s own documentation warns about this combination.
The second is third-party actions referenced by a mutable tag. uses: some-org/some-action@v3 resolves to whatever commit the tag points at when the job runs. If that tag is moved by a compromised maintainer account, your next build runs the attacker’s code with your token. This is CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
What an attacker needs, and what they cannot do
For the first pattern, an attacker needs the ability to open a pull request (on a public repository, anyone can) and a workflow that runs their code with secrets in scope. They do not need any application vulnerability.
For the second, they need control of an upstream action’s repository or release process, which is harder, but the blast radius covers every consumer of that action at once.
Neither path works if the workflow token is read-only, secrets are not exposed to code from forks, third-party actions are pinned to a full commit SHA, and deploy credentials are short-lived and scoped to protected branches. An attacker who can only run code with a read-only token and no secrets can waste your runner minutes, but cannot publish or deploy.
Mitigations
1. Give every finding a context record
Context is the cheapest thing to add and the one that changes prioritization most. Store it once per service, not per finding, and join it at triage time. A service catalog entry can be as small as this:
# catalog/payments-api.yaml
service: payments-api
repo: org/payments-api
owner_team: payments-core
exposure: internet # internet | partner | internal | offline
data_classes: [cardholder, pii]
authn: oauth2-user
runtime: eks/prod-eu
criticality: tier-1
Triage then answers three questions per finding: is the code reachable from an entry point, is the service exposed, and does a successful exploit touch sensitive data or privileged actions. A finding with “no” to all three goes to a hygiene backlog with no deadline. A finding with “yes” to all three gets a short SLA and a named reviewer.
2. Route to the code owner, not to a queue
Use the ownership data you already maintain. CODEOWNERS gives path-level owners; the catalog gives service-level owners. Route new findings to the narrowest owner and fall back to the service owner.
# .github/CODEOWNERS
/services/payments/ @org/payments-core
/services/ledger/ @org/ledger
/infra/terraform/ @org/platform
Then measure time from detection to an accepted owner. If that number is large, the problem is routing, and no amount of scanner tuning will fix it.
3. Gate on new, relevant findings in the change
A release gate should block the merge only for findings that the change introduced, that match a short list of high-confidence rules, and that sit in exposed services. Existing findings belong in the backlog with an SLA, not in front of an unrelated pull request.
# security-gate.yaml (illustrative policy, adapt to your ASPM or CI tooling)
block_merge_when:
introduced_in_diff: true
any_of:
- category: secrets
- category: sast
confidence: high
rule_tags: [injection, authz, deserialization]
service.exposure: [internet, partner]
- category: sca
reachable: true
fix_available: true
severity: [critical, high]
exceptions:
require: [ticket, approver_from: security, expires_in_days_max: 30]
Exceptions need an owner, a reason, and an expiry date. An exception list that only grows is a second backlog with less visibility.
4. Harden the workflow that runs the scanners
The pipeline that checks your code should not be the weakest part of it. A baseline for GitHub Actions:
# .github/workflows/ci.yml
on:
pull_request: # not pull_request_target for building PR code
push:
branches: [main]
permissions:
contents: read # default to read-only; grant more per job
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@<full-40-char-commit-sha> # v4, pinned by SHA
with:
persist-credentials: false
- run: make test scan
deploy:
if: github.ref == 'refs/heads/main'
needs: build
environment: production # protected environment with required reviewers
permissions:
contents: read
id-token: write # OIDC to the cloud, no long-lived keys
runs-on: ubuntu-latest
steps:
- run: ./deploy.sh
Pair this with a cloud-side trust policy that only accepts OIDC tokens whose subject claim names your repository and the protected environment, so a token minted on another branch cannot assume the deploy role. Keep a tool such as Dependabot or Renovate updating the pinned SHAs so pinning does not freeze you on old versions.
5. Close a finding by verification
A finding is closed when the rescan no longer reports it and, for anything above hygiene level, a test demonstrates the original issue is gone. For an injection finding that can be a unit test with the payload class; for an authorization finding, an integration test that calls the endpoint as the wrong user and expects a denial. Keep the test. It is the cheapest regression protection you will get.
Validation steps
Use these checks to find out whether the system works, independent of the tools you run:
- Pick five recent high-severity findings. For each, can you name the owning team, the service exposure and the date someone accepted ownership, without asking anyone?
- Pick five findings marked fixed in the last month. Rescan the current main branch and check each is gone. For two of them, read the fix and confirm it addresses the root cause rather than the rule match.
- List merge-blocking events in the last month. For each, was the finding introduced by that change? If not, the gate is blocking on backlog.
- List active exceptions. How many have passed their expiry date?
- Search all workflows for
pull_request_target,workflow_run,permissions: write-all, missingpermissionsblocks, anduses:lines not pinned to a 40-character SHA. - For each deploy credential, check whether it is long-lived and whether a job on an unprotected branch can reach it.
The useful measures that come out of this are definitions, not targets: time to owner, share of findings closed by verification, number of expired exceptions, and coverage of tier-1 services by each scan type. Track their direction over quarters.
Framework mapping
These practices map to published frameworks where the correspondence is direct:
- NIST SP 800-218, Secure Software Development Framework: PS.1 (protect all forms of code from unauthorized access and tampering), PW.7 and PW.8 (review and test code), RV.1 and RV.2 (identify, assess, prioritize and remediate vulnerabilities), RV.3 (analyze root causes).
- SLSA v1.0 build track: provenance generation and verification for the registry-to-deploy boundary.
- CWE-829 for unpinned third-party CI code; CWE-798: Use of Hard-coded Credentials for secrets found in code.
- GitHub’s security hardening guidance for Actions covers token permissions, third-party actions and OIDC in more depth.
Limits and uncertainty
This is a method article. It does not report measurements from a specific environment, and it makes no claim about how many findings in a typical backlog are false positives or unreachable; that varies too much by codebase and tooling to state honestly.
Reachability analysis in commercial SCA tools is uneven across languages and frameworks. Treat “unreachable” as a reason to lower priority, not as proof of safety, and spot-check it.
The workflow examples target GitHub Actions. GitLab CI, Azure DevOps and Jenkins have equivalent controls with different names and different defaults, and the pull-request trust model differs between them. Check the current documentation for your platform; defaults for token permissions have changed more than once.
Finally, none of this replaces design review. Scanners find patterns in code. Missing authorization checks, unsafe trust between services and flawed business logic mostly show up in architecture and threat modeling, before the code exists.