Repository navigation
Conversation
Contributor
📝 Changelog previewBelow is a preview of the Changelog that will be added to the next release. Only commit messages that follow the Conventional Commits specification will be included in the Changelog. v7.1.0 - 2026-10-23Full Changelog: v7.0.3...v7.1.0 🚀 Features |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
Static review found no blocking issues in command integration, pagination, or GraphQL contracts; tests were not executed.
No open issues 🎉
What changed in this PR
Adds global CVE discovery to the Nais CLI and enriches vulnerability search with risk signals and remediation details.
Changes:
- Adds
vulns cveswith priority filtering, sorting, fetch limits, and table or JSON output. - Paginates affected-workload searches and includes priority, fix versions, and suppression details.
- Updates the generated GraphQL client and adds pagination, limit, and flag-completion tests.
| File | Description |
|---|---|
internal/vulnerability/vulnerability.go |
Adds paginated workload lookup and richer CVE reports. |
internal/vulnerability/search_test.go |
Tests pagination before environment filtering and result mapping. |
internal/vulnerability/command/search.go |
Displays risk signals and workload fix versions. |
internal/vulnerability/command/flag/flag.go |
Defines catalog flags and completion values. |
internal/vulnerability/command/cves.go |
Implements the global CVE listing command. |
internal/vulnerability/command/completion_test.go |
Tests catalog flag completion. |
internal/vulnerability/command/command.go |
Registers the cves subcommand. |
internal/vulnerability/catalog.go |
Fetches and maps paginated CVE catalog results. |
internal/vulnerability/catalog_test.go |
Tests filtering, ordering, pagination, cursor errors, and limits. |
internal/naisapi/gql/generated.go |
Adds generated types and queries for catalog and search support. |
Review effort: Balanced
This branch has not been deployed
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.
No description provided.