WebGoesOnContact
Home/Articles/DevSecOps: securing releases with Trivy and SonarQube
29 November 2026 · 5 min read · WebGoesOn team

DevSecOps: securing releases with Trivy and SonarQube.

A secure application is not simply one that was audited before launch. Build security into every code change and every artifact sent to production.

A pipeline that checks every change

A commit triggers a reproducible pipeline: automated tests, static analysis, image building, component scanning and deployment controls. Results should be tied to an identifiable commit and artifact. The aim is to find issues early enough to fix them without unnecessary delivery delays.

SonarQube: control code quality at source

Static analysis can raise reliability, maintainability and security findings. Define a project-appropriate quality gate focused on new code. A finding is not necessarily an exploitable vulnerability: review the context, remediate relevant issues and document exceptions. The gate does not replace human review or testing.

Trivy: check the components shipped

Scanning an image can identify packages and dependencies with known vulnerabilities. Depending on the enabled scanners, Trivy can also examine files, secrets or configurations. Scan the actual image intended for production and rescan as vulnerability information changes: a scan is a point-in-time result, not a permanent guarantee.

Decide which findings should actually block delivery

An example policy, to be adapted: block merges when the new-code quality gate fails; stop releases when an exploitable critical vulnerability has no approved treatment; require temporary, owned and dated exceptions. Use exposure, risk and remediation availability rather than a severity score alone.

Demonstrate that the process works

In a test environment, introduce a deliberately vulnerable test dependency and verify that the intended rule blocks the artifact. Then test remediation, restoration and rollback. Monitor remediation lead time, artifact scan coverage and the number of expired exceptions.

WebGoesOn

Discuss your project.

Describe your objectives and constraints; we will define the next steps together.