ci: add Trivy security gates and container SBOM#30
Merged
Conversation
Owner
Author
Security gate validationThe first run correctly blocked nine existing fixable HIGH findings. This branch now also updates only the affected lockfile entries:
Validation after remediation:
GitHub Actions run: https://github.com/KostasCherv/cortex/actions/runs/29191102901 |
KostasCherv
marked this pull request as ready for review
July 14, 2026 07:59
Owner
Author
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
# Conflicts: # README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainRationale
A successful unit-test run does not establish that the shipped dependency graph and container are safe. This adds a small, vendor-neutral release gate around the existing build without introducing a service or a second scanner.
The gate blocks actionable HIGH/CRITICAL findings. Vulnerabilities without an available fix remain visible but do not block delivery, avoiding permanent red builds for issues the project cannot remediate yet. HIGH/CRITICAL misconfiguration and secret findings remain blocking.
Third-party actions are pinned to immutable commit SHAs. Dependabot already monitors GitHub Actions and dependency ecosystems, so updates stay visible through the existing maintenance path.
Impact
cortex-sbom-<commit-sha>as a CycloneDX JSON artifact retained for 30 days.Checks
git diff --check.github/workflows/ci.ymlwith PyYAMLaquasecurity/trivy-actionv0.36.0 action metadatagraphify update .successfully (2,679 nodes / 6,095 edges)ghcr.io/astral-sh/uvmetadata fetch, but the registry did not respond in this environment