Skip to content

security: add commands for cspm scanning preview#1806

Merged
bentranter merged 4 commits intomainfrom
security/add-cspm-scanning-preview
Feb 18, 2026
Merged

security: add commands for cspm scanning preview#1806
bentranter merged 4 commits intomainfrom
security/add-cspm-scanning-preview

Conversation

@bentranter
Copy link
Member

@bentranter bentranter commented Feb 12, 2026

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.

Adds the commands for the CSPM scanning preview, and pulls in the
latest godo changes to support that.
@bentranter bentranter force-pushed the security/add-cspm-scanning-preview branch from ee3bb86 to f7b72b8 Compare February 12, 2026 22:24
@bentranter bentranter marked this pull request as ready for review February 17, 2026 21:01

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 `
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing major we could change example here
doctl security scans affected-resources 497dcba3-ecbf-4587-a2dd-5eb0665e6880 --finding-uuid 50e14f43-dd4e-412f-864d-78943ea28d91

Copy link
Contributor

@anup-deka anup-deka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bentranter bentranter merged commit 94cff49 into main Feb 18, 2026
9 checks passed
@bentranter bentranter deleted the security/add-cspm-scanning-preview branch February 18, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants