Skip to content

feat: add PackageTrustLink deny and revoke support - #922

Open
btrn11 wants to merge 4 commits into
packaging-distribution/spifrom
t/packaging-distribution/link-deny-revoke
Open

feat: add PackageTrustLink deny and revoke support#922
btrn11 wants to merge 4 commits into
packaging-distribution/spifrom
t/packaging-distribution/link-deny-revoke

Conversation

@btrn11

@btrn11 btrn11 commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add PackageTrustLink.deny (Pending → Declined) and PackageTrustLink.revoke (Accepted → Revoked) for Verified PBO admins
  • reuse the approve selector path (--request / --authoring-org), scoped to the connected verified org and excluding self-trust
  • match core PkgVrfyAuthOrgTrustRela transitions: verified org may accept or decline pending, and revoke after accept

Depends on forcedotcom/packaging#921 (approve). Extra approve commits drop out once that PR merges.

Test plan

  • yarn mocha test/package/packageTrustLink.test.ts
  • deny/revoke request-ID and authoring-org paths
  • not-found does not call Tooling update
  • existing approve tests still pass after shared helper extract

Companion CLI

btrn11 added 2 commits August 28, 2026 12:55
Enable verified PBO admins to accept a pending trust link by request or
authoring org while keeping updates scoped to the connected org.
Allow a Verified PBO to decline a pending request (Pending → Declined) or
revoke an accepted link (Accepted → Revoked), matching core status transitions.
btrn11 added 2 commits August 28, 2026 16:57
validateSalesforceId is unanchored, so keep a whole-string 15/18-char check
before interpolating selectors into Tooling SOQL.
Use the same prefix plus @salesforce/core helper as other packaging APIs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant