security: add commands for cspm scanning preview#1806
Merged
bentranter merged 4 commits intomainfrom Feb 18, 2026
Merged
Conversation
Adds the commands for the CSPM scanning preview, and pulls in the latest godo changes to support that.
ee3bb86 to
f7b72b8
Compare
anup-deka
reviewed
Feb 18, 2026
|
|
||
| cmdScanFindingAffectedResources := CmdBuilder(cmd, RunCmdSecurityFindingAffectedResources, "affected-resources <scan-uuid>", "List scan finding affected resources", `Retrieves the resources affected by the issue identified in a scan finding.`, Writer, displayerType(&displayers.SecurityAffectedResource{})) | ||
| AddStringFlag(cmdScanFindingAffectedResources, doctl.ArgSecurityFindingUUID, "", "", "Finding UUID to show affected resources for", requiredOpt()) | ||
| cmdScanFindingAffectedResources.Example = `The following example lists affected resources for a finding: doctl security scans affected-resources --finding-uuid 50e14f43-dd4e-412f-864d-78943ea28d91 497dcba3-ecbf-4587-a2dd-5eb0665e6880 ` |
Contributor
There was a problem hiding this comment.
Nothing major we could change example here
doctl security scans affected-resources 497dcba3-ecbf-4587-a2dd-5eb0665e6880 --finding-uuid 50e14f43-dd4e-412f-864d-78943ea28d91
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.
Adds the commands for the CSPM scanning preview, and pulls in the latest godo changes to support that.
In draft for now since I still need to add integration tests.