GitOps, CI/CD and automation ยท Practice and architecture
GitLab, Harbor, Trivy and Argo CD in one release workflow
A team can have a working scanner and a well-protected registry yet ship a different image from the one assessed. A shared reference to the artifact version is more important than simply connecting four tools.
Build and identify the artifact in CI
GitLab CI builds an image and records its connection to the source. Trivy assesses the artifact or configuration at an agreed stage. A scan result should identify a version unambiguously, not merely name the repository.
Protect publication and deployment
Harbor stores images, limits project access and controls retention. Argo CD reads the environment declaration, where an immutable image reference makes it possible to verify what was approved and what actually runs.
Decide what happens when a check fails
Distinguish a finding from an incomplete result and scanner unavailability. An exception needs an owner and a review date. Also verify that the last approved artifact remains available if a deployment must be rolled back.