Security quality gates connect security testing to delivery decisions. A scanner produces evidence; a gate evaluates that evidence against a policy and controls whether a change can advance. Simply running a vulnerability scan, publishing a report, or sending a notification does not create a gate. The pipeline must actually prevent promotion when the acceptance criteria are not met.
Gates can operate at pull request, build, artifact publication, staging, and production promotion boundaries. Common inputs include static application security testing, dependency analysis, secret detection, container vulnerability scanning, infrastructure-as-code checks, and dynamic testing against a deployed test environment. These checks cover different risks: inspecting application source does not establish that its operating-system packages or deployment permissions are safe.
A practical policy might reject newly introduced critical vulnerabilities, reject exposed credentials regardless of severity, and require approval for specified high-severity findings. Severity alone is often insufficient. Exploitability, workload exposure, affected component usage, fix availability, and organizational requirements can influence the decision. Teams can baseline existing findings to avoid stopping every release immediately, but inherited vulnerabilities still need owners, remediation deadlines, and tracking.
For example, a container delivery pipeline can test source code, build an image, push it to a registry, and wait for vulnerability scanning to complete. A policy step then evaluates findings for the exact image digest and fails the build if disallowed vulnerabilities remain. Deployment must use that same digest rather than a mutable tag; otherwise, a different image could be deployed after the gate passes. A successful image upload is not evidence that its security scan completed or passed.
On AWS, AWS CodeBuild can run supported scanners and policy evaluation scripts, while AWS CodePipeline uses action results to control subsequent deployment stages. Amazon Inspector can supply vulnerability analysis for supported artifacts and workloads. When an exam names Amazon Q Developer or Amazon CodeGuru Security, distinguish code-level vulnerability discovery from pipeline enforcement: developer feedback and remediation suggestions do not, by themselves, establish a mandatory release gate.
Remediation closes the loop. Findings should identify the affected artifact, responsible team, recommended correction, and required completion date. A dependency update, base-image rebuild, or code fix should trigger another scan and the relevant functional tests before promotion. Automated fixes can reduce repetitive work, but they still require validation because a security correction can change application behavior. Runtime vulnerability discovery should also trigger rebuilds or remediation workflows when newly disclosed vulnerabilities affect previously approved artifacts.
Operational reliability matters. A scanner timeout, permission error, unsupported artifact, or incomplete scan must not silently become a passing result. Diagnose missing findings by checking scan coverage, completion status, artifact identity, IAM permissions, network access, and result parsing. Protect gate scripts, pipeline definitions, and exception records from unauthorized changes so that developers cannot bypass controls by editing the mechanism that enforces them.
The main trade-offs are delivery latency, scanning cost, and false-positive handling. Fast checks can run on every change, with deeper tests at later boundaries. Exceptions should have documented justification, an accountable approver, compensating controls where appropriate, and an expiration date. Passing a gate means the artifact met a defined policy using available evidence; it does not prove that the workload is vulnerability-free or eliminate the need for runtime security controls.