Skip to content

Comments

feat: migrate Vulnerability Management API from v1beta1 to v1#46

Merged
airadier merged 1 commit intomainfrom
feat/migrate-vuln-api-v1beta1-to-v1
Feb 20, 2026
Merged

feat: migrate Vulnerability Management API from v1beta1 to v1#46
airadier merged 1 commit intomainfrom
feat/migrate-vuln-api-v1beta1-to-v1

Conversation

@airadier
Copy link
Contributor

Summary

Migrates all Vulnerability Management API endpoints from the deprecated v1beta1 version to v1.

  • Endpoint paths: Updated all three endpoints (runtime-results, registry-results, pipeline-results) from /secure/vulnerability/v1beta1/... to /secure/vulnerability/v1/...
  • Runtime: policyEvaluationsResultpolicyEvaluationResult (field renamed in v1); added new resourceId field to type
  • Pipeline: policyEvaluationsResultpolicyEvaluationResult; mainAssetNamepullString (field renamed in v1)
  • Registry: mainAssetNamepullString (field renamed in v1)

The mainAssetNamepullString changes for pipeline and registry were discovered by comparing against live v1 API responses, as these endpoints are not covered in the official migration spec.

Test plan

  • All existing tests pass
  • New tests added for each component validating v1 field names (policyEvaluationResult, pullString)
  • New test in SysdigApiClient.test.ts asserting endpoint paths use /v1/ and not v1beta1
  • New tests for null policyEvaluationResult filtering behaviour in runtime and pipeline
  • Validated manually against live v1 API — runtime, registry and pipeline tabs all render correctly

- Update all three endpoint paths to /secure/vulnerability/v1/...
- Runtime: rename policyEvaluationsResult -> policyEvaluationResult, add resourceId field
- Pipeline: rename policyEvaluationsResult -> policyEvaluationResult, rename mainAssetName -> pullString
- Registry: rename mainAssetName -> pullString
- Add tests validating v1 response field mapping for all three components
- Add test asserting endpoint paths no longer reference v1beta1

Changes verified against live v1 API responses.
@airadier airadier requested a review from tembleking February 20, 2026 15:44
@airadier airadier merged commit cc6abe3 into main Feb 20, 2026
2 checks passed
@airadier airadier deleted the feat/migrate-vuln-api-v1beta1-to-v1 branch February 20, 2026 15:53
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