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-24Full Changelog: v7.0.3...v7.1.0 🚀 Features
⚙️ Miscellaneous Changes
|
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Serial per-image GraphQL requests substantially increase listing latency for teams with distinct workload images.
1 open issue
What changed in this PR
This PR expands vulnerability listings in the Nais CLI with paginated results, operational priority filters, and richer risk and remediation details.
Changes:
- Adds pagination for workload summaries, workloads, and image vulnerabilities.
- Adds priority and KEV filters, tenant-wide summaries, and expanded table and JSON output.
- Adds tests for pagination, priority validation, and shell completion.
| File | Description |
|---|---|
internal/vulnerability/vulnerability.go |
Adds paginated queries, tenant-wide summaries, and richer vulnerability data. |
internal/vulnerability/list_test.go |
Tests pagination, cursor validation, and team preservation. |
internal/vulnerability/command/list.go |
Connects filters and tenant-wide listing to expanded CLI output. |
internal/vulnerability/command/flag/flag.go |
Defines new filters and priority validation and completion. |
internal/vulnerability/command/flag/flag_test.go |
Tests accepted and rejected priority values. |
internal/vulnerability/command/completion_test.go |
Tests listing subcommands and flag completion. |
Review effort: Balanced
| imageID := workload.GetImage().Id | ||
| entries, ok := images[imageID] | ||
| if !ok { | ||
| entries, err = listImageCVEs(ctx, client, imageID, vulnerabilityFilter) |
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.